PDA

View Full Version : QTableWidget, header cells margin



DpoHro
16th January 2008, 07:49
I can margin cells of QTableWidget header, or some cells on grid?

high_flyer
17th January 2008, 13:04
I guess you can use setContentsMargins() (http://doc.trolltech.com/4.3/qwidget.html#setContentsMargins) for the QTableWidgetItems

DpoHro
17th January 2008, 22:22
I can't find this function, maybe it dont present in Qt 4.3.2 ?

high_flyer
17th January 2008, 23:10
Sorry, I assumed it was a QWidget subclass, I see it is not.

wysota
18th January 2008, 00:38
You need a custom delegate for that in 4.3.2. Since 4.4 you'll be able to use stylesheets, but in 4.3 the default delegate doesn't support them.