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

QDoubleValidator Does not work as expected

    XMLWordPrintable

Details

    • macOS, Windows

    Description

      QDoubleValidator having StandardNotation set still accepts values set beyond range set (setBottom() setTop() )

      This works good with Qt6.5. Attached is example which reproduces this. There are two line edits first one works as expexted because values are considered in intermediate. But second line edit has setNotation(QDoubleValidator::StandardNotation) and this does not work as expected.

      With Qt5.15.x for some reason you can set value 0 to 10 in second line edit in the attached example. 

      With 6.5 this does not let you set any value other than 6,7 and 8 and this is what is expected. 

      Attachments

        1. qtbug113373.zip
          5 kB
          Irfan Omair
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            srutledg Shawn Rutledge
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes