oldFox64
2nd April 2014, 11:21
I'm reading a file and using a progress bar.
while(!in.atEnd()){
//work
ui->progressBar->setValue(in.pos());
qApp->processEvents(QEventLoop::ExcludeUserInputEvents); // "disables" gui
}
During this event, there is the possibility that a signal is emitted, the issue is that I can't detect it because of the QEventLoop.
while(!in.atEnd()){
//work
ui->progressBar->setValue(in.pos());
qApp->processEvents(QEventLoop::ExcludeUserInputEvents); // "disables" gui
}
During this event, there is the possibility that a signal is emitted, the issue is that I can't detect it because of the QEventLoop.