PDA

View Full Version : progress DIalog



mickey
25th July 2006, 14:25
hi, I'm trying to do this; but the dialog appear, progressBarTx is at 100%...why I can't see the increment? ProgressBar max value is 100 from designer....and -1 min. thanks




//mainform
progress->show();
....Write(f, progress);
progress->close();

void OB::Write(QTextStream& xstrm, myProgressDialog* prog) {
for (int i=0; i< 10000; i++) {
prog->progressTx();
}
}
void myProgressDialog::progressTx() {
progressBarTx->setProgress(progressBarTx->progress()+1); qApp->processEvents();
}

wysota
26th July 2006, 02:01
Can you provide a minimal compilable example which reproduces the problem? I can't work anything out from the code you pasted here. Did you set an initial value for the progress bar?

mickey
26th July 2006, 14:30
It was at 100 at start becuse the calcolus was quick....I can't see the steps go On...