Results 1 to 3 of 3

Thread: Custom spinner - fast increment/decrement

  1. #1
    Join Date
    Mar 2007
    Posts
    74
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Custom spinner - fast increment/decrement

    Hi,

    I am implementing a custom spinner control built using 2 small
    buttons and a QLineEdit. Everything is in place and working. One
    button increments the linedit, the other decrements it.

    I would like to add functionality where if you click and hold
    one of the buttons then after 2 secs or so the increment/decrement
    speed is much faster.

    I have some ideas using a timer and so forth, but perhaps there
    is some already available functionality I am not aware of.

    Any suggestions?

    Many thanks!

    Mark

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Custom spinner - fast increment/decrement

    What's wrong with using QSpinBox?

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Custom spinner - fast increment/decrement

    J-P Nurmi

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.