hello everybody
I'm creating a simple application that should be a 7 segment clock, everything works ok when I try this codesnippet
Qt Code:
  1. QString hour=QString::number(time.currentTime().hour());
  2. QString min=QString::number(time.currentTime().minute());
  3. QString sec=QString::number(time.currentTime().second());
  4. scene->clear();
  5. for(int i=0;i<6;i++)
  6. {
  7. if(i%2==0 && i>0)
  8. this->designPoints(i);//I design the dots so that the clock looks something like this 00:00:00
  9. QString appoggio;
  10. if(i==0 || i ==1)
  11. appoggio=ImpostaAppoggio(i,hour);//sets the value of appoggio
  12. if(i==2 || i==3 )
  13. appoggio=ImpostaAppoggio(i,min);
  14. if(i==4 || i ==5)
  15. appoggio=ImpostaAppoggio(i,sec);
  16. DisegnaNum(appoggio,i);//I design the seven segments
To copy to clipboard, switch view to plain text mode 
but when I try this
Qt Code:
  1. for(int j=0;j<1000;j++)
  2. {
  3. QString hour=QString::number(time.currentTime().hour());
  4. QString min=QString::number(time.currentTime().minute());
  5. QString sec=QString::number(time.currentTime().second());
  6. scene->clear();
  7. for(int i=0;i<6;i++)
  8. {
  9. if(i%2==0 && i>0)
  10. this->designPoints(i);
  11. QString appoggio;
  12. if(i==0 || i ==1)
  13. appoggio=ImpostaAppoggio(i,hour);
  14. if(i==2 || i==3 )
  15. appoggio=ImpostaAppoggio(i,min);
  16. if(i==4 || i ==5)
  17. appoggio=ImpostaAppoggio(i,sec);
  18. DisegnaNum(appoggio,i);
  19. }
  20. }
To copy to clipboard, switch view to plain text mode 
no errors or warning occur but no window is showing up and I can't figure out what's going wrong! can someone help?
thank's