[Solved] How to Change character at cursor position?
-
how to change the character at cursor position in the QLineedit?
-
I guess the simplest way would be to just use the "cursorPosition()":https://qt-project.org/doc/qt-4.8/qlineedit.html#cursorPosition-prop to get the cursor pos, then you use "text()":https://qt-project.org/doc/qt-4.8/qlineedit.html#text-prop to get the text, manipulate the string at the cursor position and set it again with "setText()":https://qt-project.org/doc/qt-4.8/qlineedit.html#text-prop
-
Yes. Thank you. I used cursorPosition() and solved by work around.