Results 1 to 2 of 2

Thread: QTableView Performance Problem on Windows

  1. #1
    Join Date
    Mar 2007
    Posts
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default QTableView Performance Problem on Windows

    Hello,

    I'm developing an application largely based on readonly tables with dynamic content. I use primarily Linux as my development platform. I've implemented MVC pattern, added some cache logic for data() method of model (data is retrieved from remote servers dynamically). Everything is running smootly on Linux; scrolling up and down is fast, scrolling left/right is again fast for either pixel based or item based scrolls.

    However, when I tried the very same code on Windows, especially the up/down scrolls are too slow on the same hardware. I tried on two other Windows machines, the result was the same.

    I don't know what causes this huge performance difference, but I observed the following:

    Think about a readonly table containing 100 rows and 20 columns with texual data. On my screen, say only 20 rows are displayed at a time. On linux when I reach the bottommost displayed row and press down key, it seems bottom 19 rows are immediately copied (drawn) to 1 row upper position and model is only queried for the new bottom row. However on Windows, it seems like Qt queries 20 rows of data and repaints each cell again.

    Any ideas how to optimize this ? I hope that I could express the problem clearly.

    Regards,
    Umitoz

  2. #2
    Join Date
    Mar 2007
    Posts
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTableView Performance Problem on Windows

    Forgot to say that I'm using Qt 4.3.1, I've also tried 4.3.0 with no success.

Similar Threads

  1. Qt + Portmidi in Windows... libraries problem
    By hipogrito in forum Newbie
    Replies: 2
    Last Post: 19th June 2009, 00:01
  2. Printing problem in windows
    By joseph in forum Qt Programming
    Replies: 6
    Last Post: 12th July 2007, 08:04
  3. qt deployment problem on windows xp
    By sepp in forum Installation and Deployment
    Replies: 3
    Last Post: 5th July 2007, 11:16
  4. Replies: 9
    Last Post: 23rd November 2006, 11:39
  5. Thread problem with windows
    By vratojr in forum Qt Programming
    Replies: 17
    Last Post: 16th June 2006, 08:34

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.