[Qt-interest] Hiding a QDialog?

Ian Thomson Ian.Thomson at iongeo.com
Wed Jun 30 10:32:16 CEST 2010


Hi,

Jan wrote:
> Actually I am doing something like this. It seems to work. Though I read 
> using "goto" is regarded as "bad code".

Yes it is. To avoid goto you should structure it like this.

QDialog dlg;

do
{
   if (dlg.exec() != QDialog::Accepted)
     return;
} while (dlg.somethingIsWrong());




More information about the Qt-interest-old mailing list