Results 1 to 7 of 7

Thread: Reversing the arrows in a QSpinBox

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2009
    Posts
    34
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    2

    Default Re: Reversing the arrows in a QSpinBox

    This seems to fix it for the textFromValue-part, but it looks like the validator prevents the input of positive numbers when I have a range of [-45.0, 0.0]

    I will look into that. I'm much closer to this working now than a few hours ago. Thanks!

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

    Default Re: Reversing the arrows in a QSpinBox

    You can reimplement validate() for that.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. how to customize arrows of QScrollBar ??
    By kunalnandi in forum Qt Programming
    Replies: 0
    Last Post: 24th March 2009, 05:05
  2. Docking Arrows
    By asriniva in forum Qt Programming
    Replies: 1
    Last Post: 24th March 2009, 00:08
  3. auto-repeating arrows
    By skrzypu in forum Qt Programming
    Replies: 0
    Last Post: 15th October 2008, 09:32
  4. stackedWidget with arrows
    By Zergi in forum Newbie
    Replies: 2
    Last Post: 16th July 2008, 10:20
  5. Remove QSpinbox up/down arrows
    By SailinShoes in forum Qt Programming
    Replies: 7
    Last Post: 12th March 2008, 20:40

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.