Results 1 to 2 of 2

Thread: QDoubleSpinBox and QDoubleValidator

  1. #1
    Join Date
    Jun 2008
    Posts
    25
    Thanks
    9
    Thanked 1 Time in 1 Post

    Default QDoubleSpinBox and QDoubleValidator

    Currently I am using QDoubleSpinBox in my coding, but before that i were using QAbstractSpinBox and make use of QDoubleValidator with 2 decimal positions and works fine.

    Now while editing into the QDoubleSpinBox, the string obtained from QDoubleSpinbox [in exponential form] is always returning 3 decimal positions and QDoubleValidator is always giving and "Invalid" result.

    Is the QDoubleValidator necessary for QDoubleSpinBox.?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QDoubleSpinBox and QDoubleValidator

    No, you don't need the validator for QDoubleSpinBox.

Similar Threads

  1. Subclass QDoubleSpinBox
    By SailinShoes in forum Qt Programming
    Replies: 1
    Last Post: 13th June 2008, 11:29

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.