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

    • All

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes