Hello everyone,
I have a QTableWidget (3 columns,rows are added by a loop).
I would like to know if it is possible to repaint a cell,or a row, without repainting the whole table.
I have read that method repaint() can't be used in a QTableWidgetItem.
If anyone has an idea please let me know.
Thanks


Reply With Quote

rocessEvents ( QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents ) [static]
The point is that each repaint() is executed immediately and two or more update() calls can be "merged", resulting in much more efficient painting. That's why it's better to use update() (and probably why repaint() is protected).


Bookmarks