Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Class to wait for user interaction

    Showcase
    7
    7
    5340
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      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.

      1 Reply Last reply Reply Quote 0
      • L
        leon.anavi last edited by

        Just read the wiki article. Thanks Andre, it seems really nice and user-friendly for filtering :)

        http://anavi.org/

        1 Reply Last reply Reply Quote 0
        • G
          giesbert last edited by

          Moved this to wiki discussion, as it's not showing an app, more describing / discussing wiki :-)

          Nokia Certified Qt Specialist.
          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

          1 Reply Last reply Reply Quote 0
          • G
            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...

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply Reply Quote 0
            • Alicemirror
              Alicemirror last edited by

              Very interesting and useful article Andre. Strange, I'm experiencing a problem like this in user interaction...

              Many thanks!

              Enrico Miglino (aka Alicemirror)
              Balearic Dynamics
              Islas Baleares, Ibiza (Spain)
              www.balearicdynamics.com

              1 Reply Last reply Reply Quote 0
              • Z
                ZapB last edited by

                ONce again Andre, thanks for sharing another useful snippet.

                Nokia Certified Qt Specialist
                Interested in hearing about Qt related work

                1 Reply Last reply Reply Quote 0
                • S
                  Scylla last edited by

                  This is very helpful, thanks fot the useful snippet.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post