PDA

View Full Version : QTableView headers get erased after changing tab and using mouse.



hochl
16th November 2009, 16:16
Hi,

I have a strange graphics problem with Qt4, I hope someone has a solution.

I have a QTabWidget object that contains custom widgets. Those custom widgets contain, among other widgets, QTableView objects that have a custom QAbstractTableModel set using setModel(). After changing of tabs, the widget and its contents get painted correctly. If I click into the table with the mouse, only the headers for the selected cells get painted, and all other headers get erased. I've attached an image that shows the situation.

Any ideas what is wrong? Maybe I have to call some update function by hand?

Cheers,
H.