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

TextInput::inputMask adds "; " to the mask which is always compared against in the setter causing it emit a change even though it really didn't

    XMLWordPrintable

Details

    • bd7ce75f26ae646176b22310c8cdbf568c7516dd (qt/qtdeclarative/5.14)

    Description

      To reproduce, run attached application. It sets the same string as input mask and every time it emits a change signal, moves the cursor (if there) back to beginning.

      QQuickTextInputPrivate::parseInputMask adds the "; " into the mask and then this will compare against a different value:

      void QQuickTextInput::setInputMask(const QString &im)
      {
          Q_D(QQuickTextInput);
          if (d->inputMask() == im)
      

      Perhaps it could only compare up to the semicolon if im does not contain a semicolon.

      Attachments

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

        Activity

          People

            smd Jan Arve
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes