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

QIntValidator passes 0 when the range is set 1..inf

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 5.14.2
    • None
    • FreeBSD 12.1

      Qt is installed from ports.

      qt5-gui-5.14.2

    • Linux/X11

    Description

      The usage is:
      ```
      quantizeWeightsEditBox.setValidator(new QIntValidator(1/minimum/, std::numeric_limits<int>::max(), this));
      ```

      It doesn't allow to enter -1, but it passes 0.

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            yurivict Yuri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes