Hi,
I was wondering why my label does not automatically update while this is running:
Label is a QLabel declared elsewhereQt Code:
for (int kk=1; kk<100; kk++) { //main code is here Label->setNum(kk); }To copy to clipboard, switch view to plain text mode
I'd like to see the numbers counted between 1 and 99 but the only number I see is 99 (when the program is complete). Why don't I see other numbers sequentially on the screen. Is it because labels can be refreshed only when control is returned to main()?
Can labels be refreshed while another function is running?
Bookmarks