Hello all, i would like to tell me what's wrong with this code
Qt Code:
for(int a=9;a>=0;a--) { ui->label->repaint(); sleep(1); }To copy to clipboard, switch view to plain text mode
where sleep(const int) is the function from the iostream library and waits const int seconds till the next step.
The label isn't repainted :/
So, actually it is a label that must change its value every second. Thanks
Added after 39 minutes:
For anybody following this thread, the solution is to use a QTimer
Bookmarks