zakis
4th November 2009, 17:44
hello guys.
int k=1;
while(k<= ui->spinBox->value() || ui->checkBox->isChecked())
{
do something
k++
}
i try to start a loop.
" k<= spinBox->value() " its a classic loop but i use the "checkBox->isChecked()" if i want the loop is Infinity .
the loop start but if i want to uncheck the checkBox i can't.how stop the loop?
how create and stop a infinite loop?
thanks
int k=1;
while(k<= ui->spinBox->value() || ui->checkBox->isChecked())
{
do something
k++
}
i try to start a loop.
" k<= spinBox->value() " its a classic loop but i use the "checkBox->isChecked()" if i want the loop is Infinity .
the loop start but if i want to uncheck the checkBox i can't.how stop the loop?
how create and stop a infinite loop?
thanks