[SOLVED] Problem with the setfocus() method of QLineEdit object
I have a problem with the setfocus() method of QLineEdit object. I send the focus to QLineEdit object after save data of the form, the focus come to the object, but this focus come to end of object... That is because I have a input mask in the QLineEdit object, but in other QLineEdit object that not is with setinputmask() method the focus is correct... attach image...
Thanks ... Regards
Do you mean the cursor position is at the end ?
If that's the case then try setting the "cursorPosition":http://qt-project.org/doc/qt-5/qlineedit.html#cursorPosition-prop to 0.
Hi "p3c0", it's the solution... is perfect !!! very thank's ... :-)