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

QLineEdit::inputMask: Add mask characters to allow only ASCII

XMLWordPrintable

    • Icon: User Story User Story
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • None
    • None

      QLineEdit::inputMask was documented until Qt 5.14.1 to limit the input for A/a/N/n/9/0 mask characters to the ASCII range, when in fact it supported any unicode character from the Letter or Number category, respectively. See QTBUG-82291.

      Limiting input to the ASCII range is nevertheless useful. While this can be implemented using a QRegularExpressionValidator, direct support through the inputMask could still be useful.

      This could be achieved with a meta-character that defines that all following characters need to be in the ASCII range; we could use the already reserved bracket characters for this.

      Or it could be new dedicated mask characters, in which case we would need several characters, e.g ASCII equivalents for A, a, N, n, 9, 0, D, d, and #.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            vhilshei Volker Hilsheimer
            Pasi Keränen Pasi Keränen
            Volker Hilsheimer Volker Hilsheimer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes