Yes, I know that.
The problem is that how can I set the Q3TableItem to the Q3Table.
Is setItem(int, int, Q3TableItem *) the only way?
I found that the performance of this method is very slow in QT4 ......
What can I do to improve the performance??
Yes, I know that.
The problem is that how can I set the Q3TableItem to the Q3Table.
Is setItem(int, int, Q3TableItem *) the only way?
I found that the performance of this method is very slow in QT4 ......
What can I do to improve the performance??
Furthermore, if I want to switch the QT3 Q3Table code to QT4 QTableWidget, what changes should I make to the following methods?
Qt Code:
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
Once you set the item, you don't have to invoke setItem() again. You can alter the item through its methods.
If you have problems with performance, maybe you should consider using QTableView and a custom model?
Also see QHeaderView.
Bookmarks