Results 1 to 3 of 3

Thread: currentRowChanged Signal slow when calling some functions

  1. #1
    Join Date
    Jan 2012
    Location
    Canary Islands, Spain
    Posts
    86
    Thanks
    4
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default currentRowChanged Signal slow when calling some functions

    Hi, i'm trying to code a frontend, i have a game list, when currentRowChanged singal is activated, i do some screenshots/boxart/ searchs with QDirIterator, but this makes QListView very slow to change row.
    Is there any way to speed it up?
    if i keep the down key pressed, the selection freezes, until i release the key.
    Maybe QDirIterator + file by file search is not a good way to do this...
    Hope anybody can help me a little, thanks and sorry for bothering you
    Last edited by aguayro; 18th October 2012 at 02:11.

  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: currentRowChanged Signal slow when calling some functions

    Quote Originally Posted by aguayro View Post
    Hi, i'm trying to code a frontend, i have a game list, when currentRowChanged singal is activated, i do some screenshots/boxart/ searchs with QDirIterator, but this makes QListView very slow to change row.
    Is there any way to speed it up?
    You can delay the search some small amount of time (e.g. 100ms) using a timer. This way only when the user stops changing the current item, the search will begin.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    aguayro (20th October 2012)

  4. #3
    Join Date
    Jan 2012
    Location
    Canary Islands, Spain
    Posts
    86
    Thanks
    4
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: currentRowChanged Signal slow when calling some functions

    Thanks a lot wysota, one more time, your answers are very helpful!
    I really apreciate every time you helped me!!

Similar Threads

  1. problem with QListWidget::currentRowChanged signal
    By mattc in forum Qt Programming
    Replies: 1
    Last Post: 8th June 2014, 14:12
  2. Calling class functions from another function
    By prophet0 in forum General Programming
    Replies: 2
    Last Post: 2nd March 2012, 21:16
  3. ActiveQt not calling COM functions
    By daveg in forum Qt Programming
    Replies: 3
    Last Post: 11th October 2011, 09:45
  4. Replies: 5
    Last Post: 17th November 2010, 17:29
  5. Calling GUI functions from a DLL
    By inktomi in forum Qt Programming
    Replies: 0
    Last Post: 19th July 2010, 12:50

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.