Results 1 to 1 of 1

Thread: QTableView headers get erased after changing tab and using mouse.

  1. #1
    Join Date
    Nov 2009
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Unhappy QTableView headers get erased after changing tab and using mouse.

    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.
    Attached Images Attached Images

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.