[Qt-interest] QEventLoop and QEvents
Andreas Pakulat
apaku at gmx.de
Fri Feb 19 18:39:30 CET 2010
On 19.02.10 16:41:58, Eric Clark wrote:
> Sorry to reply to my own post, but I have determined that the event is
> being deleted before my event loop can execute it. Does anyone know of
> a way to keep Qt from deleting the event?
No and IMHO your approach is wrong. If your widget is not ready for
usage it shouldn't be shown in the GUI or accept GUI events. The latter
can be achieved by overriding the relevant event-handling functions in a
subclass and ignore the event. Then once the widget is ready it can call
the base-class implementation of the event-handlers. A widget where I
click on and it doesn't react, but 5 seconds later it suddenly does
something is not very usable - IMHO.
Andreas
--
You will inherit some money or a small piece of land.
More information about the Qt-interest-old
mailing list