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

[Reg 5.11.3-> 5.12.0] QIntValidator is returning Intermediate state for some of invalid entries.

    XMLWordPrintable

    Details

    • Platform/s:
      All

      Description

      QIntValidator is returning the wrong state for invalid value.

      QIntValidator v;
      v.setRange(1, 32);
      QString val = "33";
      int pos = 0;
      const QValidator::State state = v.validate(val,pos);
      qDebug() << "Got" << state;   // 5.12.0-> 1 and for 5.11.3-> 0
      

      Above code is returning state QValidator:: Intermediate for 5.12.0 and QValidator:: Invalid for 5.11.3
      As '33' is out of range for [1,32], it should result in QValidator:: Invalid

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              tuheimon Tuomas Heimonen (Inactive)
              Reporter:
              shmittal Shveta Mittal (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes