Results 1 to 4 of 4

Thread: QProxySortFilter on linux

  1. #1
    Join Date
    Jan 2006
    Posts
    369
    Thanks
    14
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QProxySortFilter on linux

    I am using a QProxySortFilter with a model that contains 22K items, and it is very slow on Linux (I had to use tircks to emulate speed, like using timers to produce callbacks a second after a key has been pressed and other tricks).

    The deal is that on windows, I can filter on every key press and on Linux when a commuly used key is pressed the filtering takes more then half a second. The machine is the same, so it's not cpu/memory problem. Also the compiler is the same (gcc). Same for Qt version.

    Can anyone share his experience with this?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QProxySortFilter on linux

    What kind of model do you use?

  3. #3
    Join Date
    Jan 2006
    Posts
    369
    Thanks
    14
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QProxySortFilter on linux

    Self made, basically a very light wrapper to QList of my own struct. If you really want to see the code, it's available here: http://qt-apps.org/content/show.php/...?content=67392

    I still don't understand how QtAssystant works that fast

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QProxySortFilter on linux

    I don't see anything suspicious in your code. What happens if you substitute your model with a QStringListModel with a similar number of elements? Is it still that slow?

Similar Threads

  1. Opacity in Linux OS
    By shyam prasad in forum Qt Programming
    Replies: 2
    Last Post: 22nd May 2007, 05:59
  2. Compiling Linux project on Mac
    By December in forum Newbie
    Replies: 2
    Last Post: 25th March 2007, 04:25
  3. Replies: 2
    Last Post: 12th January 2007, 11:19
  4. QT 3 (linux) to 4(windows XP)
    By deekayt in forum Qt Programming
    Replies: 1
    Last Post: 17th October 2006, 18:30
  5. Crosscompile Qt in Linux
    By Morea in forum General Discussion
    Replies: 4
    Last Post: 13th April 2006, 18:19

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.