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

QML TextInput: cursor position behaves badly while using inputMask

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.2
    • 5.3.1, 5.9.1
    • Win7 x64, Qt Creator 3.1.2
      Sony Xperia Z Ultra (C6802) with Android 4.4.2
      Samsung Galaxy Note 3 with Android 4.4.2
    • Android
    • fcfee98f62b8a8b8c3b1ac11cbb23620788a586c (qtbase) bb199cc8ad4111808260f6255312b08c7d81dcbc (qtdeclarative)

    Description

      import QtQuick 2.2
      
      TextInput {
          inputMethodHints: Qt.ImhDialableCharactersOnly
          inputMask: "+7(999)999-99-99;#"
          onCursorPositionChanged: console.log(cursorPosition)
      }
      

      Cursor doesn't want to jump over separators '(', ')' and "-". So user have to retype characters placed after separators.
      On Windows it works properly.

      Attachments

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

        Activity

          People

            andysh Andy Shaw
            ilya84a Ilya Aleshkov
            Votes:
            8 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes