Hi,

I was wondering why my label does not automatically update while this is running:

Qt Code:
  1. for (int kk=1; kk<100; kk++)
  2. {
  3. //main code is here
  4. Label->setNum(kk);
  5. }
To copy to clipboard, switch view to plain text mode 
Label is a QLabel declared elsewhere

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?