hi,
your hint for QFIledialog was OK! But with a dialog create in designer this doens't work!!! what change?? thanks (usually the umbra of initPlainDialog is visible until all this instructions aren't exectute)...
void MainForm::fileNew()
{
initPlainDialog *initpd= new initPlainDialog();
if(initpd->exec()){
int vx = initpd->IPDSpinBoxX->value();
int vy = initpd->IPDSpinBoxY->value();
if ((vx > 0 && vy > 0) && (vx*vy <=1024)) {
qApp->processEvents();
doSOmething //very long time
widget1->update(); //long time
}
void MainForm::fileNew()
{
initPlainDialog *initpd= new initPlainDialog();
if(initpd->exec()){
int vx = initpd->IPDSpinBoxX->value();
int vy = initpd->IPDSpinBoxY->value();
if ((vx > 0 && vy > 0) && (vx*vy <=1024)) {
qApp->processEvents();
doSOmething //very long time
widget1->update(); //long time
}
To copy to clipboard, switch view to plain text mode
Bookmarks