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

QIntValidator handels leading "0" differently, depending on the digits that follows the "0"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.7.4
    • None
    • Windows 7

    Description

      Test
      ====

      • Create a lineEdit object with assigned QIntValidatir like this:

      ui->lineEdit->setValidator(new QIntValidator(0, 999999, this));

      • Insert different numbers with leading zeros. Most are accepted as they are, with some the QIntValidator deletes the leading zeros
        00123 => 00123
        00128 => 128
        001587 => 1.587

      Conclusion
      ==========
      All numbers that have leasing zeros and contain either the digit 8 or the digit 9 get reformatted by the QIntValidator

      Suggestion
      ==========
      Please make the QIntValidator to always delete the leading zeros without inserting a decimal.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            gerhard w schuster Gerhard Walter Schuster
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes