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

Cursor position behaves badly while using inputMask

XMLWordPrintable

      If you run the code sample, you'll see that the cursor is blinking at the
      end of the TextInput and this is wrong, because only 6 symbols filled.

      If you swap two lines of code in the Component.onCompleted handler, the
      cursor will be blinking at the very beginning of the TextInput, which is wrong
      too.

      import QtQuick 1.0
      
      Item {
      width: 500
      height: 500
      
      Column {
      FocusScope {
      TextInput {
      id: input
      
      height: 20
      width: 100
      focus: true
      cursorVisible: true
      }
      }
      }
      
      Component.onCompleted: {
      input.inputMask = "+7 (999) 999-99-99;*";
      input.text = "800123";
      }
      }
      

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

            martjone Martin Jones (closed Nokia identity) (Inactive)
            rzielonk Radek Zielonka (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes