Solved QlineEdit problem.... cursor to be at first position
-
when i click the lineedit cursor pointer comes to first ..so that we can type..
-
i am creating lineedit at runtime..
width->setInputMask("0000");
when i use above code run it ...when i click the lineedit mouse cursor is at foourth position.... -
I can use the back arrow key to go to the left hand side and begin typing even though the field is limited to 4 characters.
-
@karti-gesar
Just have a look at http://doc.qt.io/qt-5/qlineedit.html#cursorPosition-prop -
i used Qvalidator to solve that problem....