Nominate our 2022 Qt Champions!

Ist there a "signal" if application main window raised?

  • Hi,

    I am looking for a signal, which is fired after application launch and the main window appeared.
    Maybe somebody can pint me to the right list of qt standard signals ...

    thx & regards Alex

  • @ademmler
    There isn't a signal. However, all QWidgets, including QMainWindow, have a showEvent. You must subclass from QMainWindow for yours, and then you can override this virtual protected method, and do whatever you want there (be sure to call the base class method before or after your code).

    In Qt some things emit a signal for you to act on, while other things have virtual methods which require you to subclass and override. The distinction/which one is available is a touch "random"... :)

Log in to reply