Created
January 6, 2013 13:21
-
-
Save lamprosg/4467100 to your computer and use it in GitHub Desktop.
Qt - Create and show a new dialog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void SomeClass::showDialog() //Show dialog if not showing | |
| { | |
| if ( dialog ) | |
| delete dialog; | |
| dialog = new DialogClass(this); | |
| dialog->show(); | |
| dialog->raise(); //Raise in front of the parent window | |
| //dialog->activateWindow(); //Active window | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment