Have you checked where it crashes?
Alternatively to an event filter you could also try reimplementing QWidget::focusOutEvent(), i.e. derive a new class from QLineEdit and overwrite the virtual method.
Cheers,
_
Have you checked where it crashes?
Alternatively to an event filter you could also try reimplementing QWidget::focusOutEvent(), i.e. derive a new class from QLineEdit and overwrite the virtual method.
Cheers,
_
Thnak you for your answer
the problem is at setFocus()
and if i reimplement the focusOutEvent - the result is the same.
Attila
Similar problem like here :
https://forum.qt.io/topic/11423/forb...-a-qlineedit/6
Attila
You could try calling setFocus() delayed since it is a slot
Qt Code:
To copy to clipboard, switch view to plain text mode
Cheers,
_
thank you
but unfortunatelly i doesn't help me - the cursor bounce from one control to another and back again ....
Thank you your kindness
Attila
Bookmarks