Class to wait for user interaction
-
wrote on 17 Mar 2011, 10:43 last edited by
I have added a "page":http://developer.qt.nokia.com/wiki/Delay_action_to_wait_for_user_interaction to the wiki that contains a class that can be used to make user interaction that directly results into (expensive) changes in the UI more smooth, by waiting for a little bit to see if more such input is given before actually taking the action. The example I use in the wiki article is the case of a QLineEdit being used to set the filter string for a QSortFilterProxyModel on an item view with lots of items. You really want to wait until the user has typed the complete filter string before actually applying the filter, but you don't want to wait too long...
The wiki snippet describes a technique to make that happen, and gives you the code to do that easily.
-
wrote on 17 Mar 2011, 11:02 last edited by
Just read the wiki article. Thanks Andre, it seems really nice and user-friendly for filtering :)
-
wrote on 17 Mar 2011, 12:10 last edited by
Moved this to wiki discussion, as it's not showing an app, more describing / discussing wiki :-)
-
wrote on 17 Mar 2011, 12:43 last edited by
[quote author="Gerolf" date="1300363819"]Moved this to wiki discussion, as it's not showing an app, more describing / discussing wiki :-)[/quote]
Moved back to showcase :-)
Wiki discussion is more for articles under construction... -
wrote on 17 Mar 2011, 13:50 last edited by
Very interesting and useful article Andre. Strange, I'm experiencing a problem like this in user interaction...
Many thanks!
-
wrote on 18 Mar 2011, 20:01 last edited by
ONce again Andre, thanks for sharing another useful snippet.
-
wrote on 18 Mar 2011, 22:58 last edited by
This is very helpful, thanks fot the useful snippet.
4/7