Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Showcase
  4. Class to wait for user interaction
QtWS25 Last Chance

Class to wait for user interaction

Scheduled Pinned Locked Moved Showcase
7 Posts 7 Posters 5.7k Views
  • 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 Offline
    A Offline
    andre
    wrote on 17 Mar 2011, 10:43 last edited by
    #1

    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
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on 17 Mar 2011, 11:02 last edited by
      #2

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

      http://anavi.org/

      1 Reply Last reply
      0
      • G Offline
        G Offline
        giesbert
        wrote on 17 Mar 2011, 12:10 last edited by
        #3

        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
        0
        • G Offline
          G Offline
          goetz
          wrote on 17 Mar 2011, 12:43 last edited by
          #4

          [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
          0
          • A Offline
            A Offline
            Alicemirror
            wrote on 17 Mar 2011, 13:50 last edited by
            #5

            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
            0
            • Z Offline
              Z Offline
              ZapB
              wrote on 18 Mar 2011, 20:01 last edited by
              #6

              ONce again Andre, thanks for sharing another useful snippet.

              Nokia Certified Qt Specialist
              Interested in hearing about Qt related work

              1 Reply Last reply
              0
              • S Offline
                S Offline
                Scylla
                wrote on 18 Mar 2011, 22:58 last edited by
                #7

                This is very helpful, thanks fot the useful snippet.

                1 Reply Last reply
                0

                2/7

                17 Mar 2011, 11:02

                topic:navigator.unread, 5
                • Login

                • Login or register to search.
                2 out of 7
                • First post
                  2/7
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved