Results 1 to 3 of 3

Thread: QSpinBox issue

  1. #1
    Join Date
    May 2012
    Posts
    99
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Question QSpinBox issue

    Hi all,

    Is it possible edit the value only with the up and down arrows and not with the related edit box?

    Regards.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QSpinBox issue

    Maybe like this: create a QSpinBox subclass, get a hold of the QLineEdit, switch it to read only mode.

    Cheers,
    _

  3. #3
    Join Date
    May 2012
    Posts
    99
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Question Re: QSpinBox issue

    Ok, thank you!

Similar Threads

  1. QSpinBox
    By ToddAtWSU in forum Qt Programming
    Replies: 10
    Last Post: 1st September 2012, 03:36
  2. QSpinbox
    By Markus_AC in forum Qt Programming
    Replies: 8
    Last Post: 20th October 2011, 11:26
  3. QSpinBox Timer Issue
    By bcollie in forum Qt Programming
    Replies: 4
    Last Post: 20th October 2011, 03:03
  4. QSpinbox
    By sonuani in forum Newbie
    Replies: 3
    Last Post: 21st March 2008, 10:36
  5. Qt4.2.2 QDoubleSpinBox QSpinBox
    By TheKedge in forum Qt Programming
    Replies: 4
    Last Post: 15th October 2007, 21:27

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.