LoginDialog is a QDialog and it does show up on application start . When you create the action it will have name for example actionLogin..