PDA

View Full Version : waiting for gui to close



mustermann.klaus@gmx.de
23rd May 2015, 15:51
Dear all,

I am pretty much stucked over the following simple question:





void forceValueInput(){

if( !value_A ){
inputgui->show; // gui is subclassed QWidget
}

// Question:
// how to wait here for inputgui to close before next step if( !value_B ) is executed
//

if( !value_B ){
inputgui->show;
}
}



I'm sure there is a simple answer and I'm just the blind one. Every hint highly appreciated.

Cheers, Lars

anda_skoa
23rd May 2015, 17:58
What you are looking for is a modal dialog.
See QDialog::exec()

Cheers,
_