PDA

View Full Version : Small problem



NewLegend
23rd July 2010, 22:26
Code here Print X, Only once.
Does not complete the print loop.



int x=0;
for(int i=0 ; i<5 ; i++)
{
x++;
ui->textBrowser->setText(resultString.setNum(x));
}

Lykurg
23rd July 2010, 22:52
I guess you want that (not sure since your question is hard to understand.)
ui->textBrowser->setText(ui->textBrowser->toPlainText() + resultString.setNum(x));