Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-6496

QDoubleSpinbox over range when setting a decimal precision of 3

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.6.2
    • 4.6.0
    • None
    • Qt Creator VC++ 2008 toolchain on Windows XP SP3 32 bits
    • 12e320a7a3a5ca93dd5287315571db1d1728e322

    Description

      Considerating these two spinboxes :

      secLongSpin = new QDoubleSpinBox();
      secLongSpin->setRange(0, 59.999);
      secLongSpin->setDecimals(3);

      altSpin = new QDoubleSpinBox();
      altSpin->setRange(-100000.00, 42849672.95);

      For the secLongSpin, if I input manually 59 then pressing the up arrow, the value is set to 60.000 which is over the range given.

      If I do the same thing with the altSpin, by inputing 42849672 then pressing the up arrow, the value is correctly set to the max : 42849672.95

      So, I think there is a bug, on the secLongSpin which could be related to the precision set to more than 2 decimals ???

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            fchantret Florent
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes