Using Qt I create a QMainWindow and want to call a function AFTER the windows is shown. When I call the function in the constructor the fun
If you want to do something while the widget is made visible, you can override QWidget::showEvent like this:
class YourWidget : public QWidget { ... void YourWidget::showEvent( QShowEvent* event ) { QWidget::showEvent( event ); //your code here }