[Qt-interest] focus in - focus out events order

Frederic Tingaud tingaud at gostai.com
Fri Jan 15 17:01:11 CET 2010


Hi,
I am working on an application which has an object containing a string
that can be modified by inputing text in a QTextEdit. I would like to
update the object only when the text is completely typed and not at each
textChanged() signal, so I tried to use FocusOutEvent(). My problem is
that I also have a bunch of QToolButtons and I found out that when
clicking on them, the corresponding QAction is triggered before my
QTextEdit receives the focusOutEvent. I assume the new focused object
has its focusInEvent resolved before the focusOutEvent of the previous
focus.
Is it the normal behaviour (I use Qt 4.5 by the way) ? Is there a way
for me to update my object before the action is triggered without
changing the focusInEvent for all my ToolButtons ?
Thanks for any help,

Frederic Tingaud



More information about the Qt-interest-old mailing list