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 );
setResizePolicy( Q3Table::Default );
setReadOnly( TRUE );
setTopMargin(31);
setLeftMargin(-1);
setFocusStyle( Q3Table::FollowStyle );
updateCell( 1, 0 );
To copy to clipboard, switch view to plain text mode
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]
void QTableItem::paint ( QPainter * p, const QColorGroup & cg, const QRect & cr, bool selected ) [virtual]
To copy to clipboard, switch view to plain text mode
What should I do in order to change that to QTableWidgetItem?
Thanks a lot!!!
Bookmarks