Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Class to wait for user interaction
andre 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.
leon.anavi last edited by
Just read the wiki article. Thanks Andre, it seems really nice and user-friendly for filtering :)
giesbert last edited by
Moved this to wiki discussion, as it's not showing an app, more describing / discussing wiki :-)
goetz 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...
Alicemirror last edited by
Very interesting and useful article Andre. Strange, I'm experiencing a problem like this in user interaction...
ZapB last edited by
ONce again Andre, thanks for sharing another useful snippet.
Scylla last edited by
This is very helpful, thanks fot the useful snippet.