Hi all
I use QTableView,QTableModel(inherit QAbstractTableModel)to display data.
Every second, I change the background color in model and emit signal.In the slot, I use tableview->viewPort()->repaint() to repaint the tableview.
In windows, the program works well. But in x11(suse), the background color does not change at all.
Please give a clue! Thank you in advance.
ps: I use qApp->processEvents() after tableview->viewPort()->repaint().But has no effect.In qt assistant there is int QApplication::x11ProcessEvent ( XEvent * ), but I do not know how to use it. what is a xevent?
Bookmarks