PDA

View Full Version : widget load event?



scarleton
14th August 2010, 18:10
Right after the QMainWindow is displayed I need to display an initial configuration dialog. Normally in the Microsoft C/C++/C# world, I start a timer at then end of the Load event and pop up the dialog in the timer handler. How does one do that in Qt?

tbscope
14th August 2010, 18:27
If you consider the end of the constructor as the "load event", then you can start a timer there.

Urthas
16th August 2010, 19:47
How does one do that in Qt?

*Just in case* you weren't aware, this part of your question is concerned with the Signals and Slots paradigm of Qt. Specifically, you would connect QTimer's timeout() signal to a custom "slot" (function) handling the event.