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

QLineEdit with inputMask with separators. Cursor doesn't go to the end of line by pressing End key.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.7.3
    • None
    • Windows 7

      QString inputMask;
      for(int i =0;i<bytesCount;i++){
          inputMask+=tr("HH ");
      }
      inputMask.remove(inputMask.length()-1,1);
      inputMask.append(tr(";0"));
      lineEdit->setInputMask(inputMask);
      

      When I pressed "End" button on the keyboard,when lineEdit is focused, cursor doesn't go to the end of input field. Possibly, it calculates quantity of mask symbols 'H', and go to the position == count of 'H', but doesn't calculate space separators.

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

            Unassigned Unassigned
            sacha_d Александр Думановский
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes