Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QDoubleSpinBox bug
Qt 6.11 is out! See what's new in the release blog

QDoubleSpinBox bug

Scheduled Pinned Locked Moved Unsolved General and Desktop
qdoublespinbox5.3.2
3 Posts 3 Posters 1.5k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    WynnRostek
    wrote on last edited by
    #1

    Is anyone aware of a bug in QDoubleSpinBox where it will not accept negative numbers? I was working on an application that has to get temperature from the user, and used a QDoubleSpinBox for the input. Setting the minimum in Qt Creator to -40.0 did not allow negative temperatures to be entered, so I tried setting the range from -40.0 to 50.0 in the MainWindow constructor after the ui setup was complete. This did not allow the desired results, so I tried setting the minimum and maximum in the MainWindow constructor after the ui setup was complete. Once again, you could not enter negative numbers in the QDoubleSpinBox.

    I am using Qt Creator 3.2.1 which uses Qt 5.3.2 (GCC 4.9.2, 64 bit) Built on November 18 at 21:47:25.

    Has anyone else run into this problem, and have you found a work around?

    TIA
    Wynn, Rostek

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What keyboard layout are you using ? I remember a small input bug when the minus was not the ASCII minus sign but it's been fixed in between.

      Also what version of Qt are you developing with ? The version used to build Qt Creator has not influence on that.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mcosta
        wrote on last edited by
        #3

        Hi,

        on my Mac (english keyboard) Qt 5.5.1 everything works!

        Once your problem is solved don't forget to:

        • Mark the thread as SOLVED using the Topic Tool menu
        • Vote up the answer(s) that helped you to solve the issue

        You can embed images using (http://imgur.com/) or (http://postimage.org/)

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved