batileon
28th August 2008, 11:18
If I want to switch the QT3 Q3Table code to QT4 QTableWidget, what changes should I make to the following methods?
setResizePolicy( Q3Table::Default );
setReadOnly( TRUE );
setTopMargin(31);
setLeftMargin(-1);
setFocusStyle( Q3Table::FollowStyle );
updateCell( 1, 0 );
And in the past, I can override the virtual paint method:
void QTableItem::paint ( QPainter * p, const QColorGroup & cg, const QRect & cr, bool selected ) [virtual]
What should I do in order to change that to QTableWidgetItem?
Thanks a lot!!!
setResizePolicy( Q3Table::Default );
setReadOnly( TRUE );
setTopMargin(31);
setLeftMargin(-1);
setFocusStyle( Q3Table::FollowStyle );
updateCell( 1, 0 );
And in the past, I can override the virtual paint method:
void QTableItem::paint ( QPainter * p, const QColorGroup & cg, const QRect & cr, bool selected ) [virtual]
What should I do in order to change that to QTableWidgetItem?
Thanks a lot!!!