> could it be done inside the mainwindow constructor ? Another idea: You could try to reimplement exec() for your mainwindow class, calling show(), myInit() and then QMainWindow::exec() from there. Martin