Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.6.3
-
None
-
Windows 7 64b (reproduced on XP 32b) , VC 2008 SP1.
Description
QLineEdit::setCursorPosition( 0 ) shifts the text of the lineedit to the right, which leads to a bad display.
This happens if the alignment of the QLineEdit has been changed.
You can find attached a sample that reproduces the issue. The sample uses _sleep() and processEvents() to mimic what happens in our real program.
if you comment the last setCursorPosition(0), the display is correct.
Attached screenshot shows (left) the result ; if you resize the lineedit, it is displayed correctly (right).