Class to wait for user interaction
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.
Just read the wiki article. Thanks Andre, it seems really nice and user-friendly for filtering :)
Moved this to wiki discussion, as it's not showing an app, more describing / discussing wiki :-)
[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...
Very interesting and useful article Andre. Strange, I'm experiencing a problem like this in user interaction...
ONce again Andre, thanks for sharing another useful snippet.
This is very helpful, thanks fot the useful snippet.