Results 1 to 3 of 3

Thread: widget load event?

  1. #1
    Join Date
    Jun 2010
    Location
    Cincinnati, Ohio, USA
    Posts
    92
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Question widget load event?

    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?

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: widget load event?

    If you consider the end of the constructor as the "load event", then you can start a timer there.

  3. #3
    Join Date
    May 2009
    Location
    Canada
    Posts
    163
    Thanks
    7
    Thanked 20 Times in 20 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows Android

    Default Re: widget load event?

    Quote Originally Posted by scarleton View Post
    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.

Similar Threads

  1. Replies: 7
    Last Post: 14th January 2010, 08:47
  2. Widget enter event
    By bunjee in forum Qt Programming
    Replies: 5
    Last Post: 20th April 2008, 22:40
  3. how to call parent widget's event ?
    By rajeshs in forum Qt Programming
    Replies: 1
    Last Post: 20th December 2007, 12:39
  4. How to get focus event in child widget
    By YuriyRusinov in forum Qt Programming
    Replies: 4
    Last Post: 17th October 2006, 07:53
  5. Replies: 4
    Last Post: 1st March 2006, 23:11

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.