Results 1 to 3 of 3

Thread: [SOLVED] Remove the +/- buttons of a QDoubleSpinBox?

  1. #1
    Join Date
    Dec 2006
    Posts
    160
    Thanks
    33
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default [SOLVED] Remove the +/- buttons of a QDoubleSpinBox?

    The question is in the title... What would be the best way to remove the +/- buttons of a QDoubleSpinBox object?

    Thanks,
    Pierre.
    Last edited by hickscorp; 17th April 2007 at 15:41.

  2. #2
    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: Remove the +/- buttons of a QDoubleSinBox?

    The question is, why?

    Use a QLineEdit with a QDoubleValidator instead of QDoubleSpinBox.
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    hickscorp (17th April 2007)

  4. #3
    Join Date
    Dec 2006
    Posts
    160
    Thanks
    33
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Remove the +/- buttons of a QDoubleSinBox?

    The answer is, because i'm lazy to do from an edit box:
    - minimum / maximum range validation,
    - step control,
    etc.

    i didnt notice this QDoubleValidator stuff
    So i guess you gave me the solution, with a minimal work around ^^

    Thank you very much,
    Pierre.

Similar Threads

  1. Replies: 6
    Last Post: 13th February 2014, 12:46
  2. Remove a QLayout from QGridLayout
    By grosem in forum Qt Programming
    Replies: 18
    Last Post: 2nd January 2007, 11:19
  3. QRegExp Help; remove all html tag
    By patrik08 in forum Qt Programming
    Replies: 7
    Last Post: 27th July 2006, 13:40
  4. Replies: 9
    Last Post: 9th May 2006, 19:53
  5. QSettings again ... how to remove array elements
    By Mike in forum Qt Programming
    Replies: 4
    Last Post: 11th January 2006, 08:58

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.