1 Jul 2014 I would make this in the following way. Let's assume, that my login dialog is a QDialog : class Login : public QDialog { [..] }; In my application, I .