Skip to content

Instantly share code, notes, and snippets.

@lamprosg
Created January 6, 2013 13:21
Show Gist options
  • Select an option

  • Save lamprosg/4467100 to your computer and use it in GitHub Desktop.

Select an option

Save lamprosg/4467100 to your computer and use it in GitHub Desktop.
Qt - Create and show a new dialog
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