From Qt Assistant, It is say that QWidget::repaint(QRect &rect) will repaints the widget directly by calling paintEvent() immediately, unless updates are disabled or the widget is hidden.
My list view is Inherits QListView. And I have setUpdatesEnabled to true, of course, My list View is visable on screen.
But why it doesn't call paintEvent() when I call repaint(QRect) in a time event?
update(QModelIndex&) is work. But repaint() seems more reliable when I need a immediate painting.
QWidget is a further base class to QListView, is this a problem?
Bookmarks