Results 1 to 7 of 7

Thread: float value to Qspinbox

  1. #1
    Join Date
    Jul 2006
    Posts
    8
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default float value to Qspinbox

    Hi all,

    I just realise that Qspinbox has not got the possibility for inputting float values. My question is thus...could someone tell me how i can make the Qspinbox to accept float values?
    Thanks in advance.
    nErnie

  2. #2
    Join Date
    Mar 2006
    Posts
    26
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: float value to Qspinbox

    Use QDoubleSpinBox ?

  3. #3
    Join Date
    Jul 2006
    Posts
    8
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: float value to Qspinbox

    But Qdesigner has just Qspinbox. How should i can i get to Qdoublespinbox?

  4. #4
    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: float value to Qspinbox

    Are we talking about Qt 4? Qt 4's designer sure has a double spinbox.
    Attached Images Attached Images
    J-P Nurmi

  5. #5
    Join Date
    Jul 2006
    Posts
    8
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: float value to Qspinbox

    Aha...i am still using Qt 3.3.6 and it has no QDoubleSpinBox. Any idea what i should do?

  6. #6
    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: float value to Qspinbox

    Maybe wwFloatSpinBox by wysota..?

    By the way, you have only marked Qt 4 as used products. You didn't mark this thread related to Qt 3 so we had no way knowing which version are you talking about.
    J-P Nurmi

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

    nErnie (17th October 2006)

  8. #7
    Join Date
    Jul 2006
    Posts
    8
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: float value to Qspinbox

    jpn thanks for that. The user product did not come to mind. I will change that.:

Similar Threads

  1. QSpinBox and returnPressed() Signal
    By BeS in forum Newbie
    Replies: 2
    Last Post: 14th October 2006, 19:23
  2. float
    By mickey in forum General Programming
    Replies: 5
    Last Post: 25th July 2006, 11:52
  3. Problem reimplementing QSpinBox in a custom widget
    By hvengel in forum Qt Programming
    Replies: 1
    Last Post: 30th March 2006, 08:12
  4. Reading the value of a QSpinBox
    By jochen_r in forum Newbie
    Replies: 4
    Last Post: 10th January 2006, 12:25

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.