Print numbers 1 to 10 in GUI [SOLVED] - [Solucionado]
General and Desktop
4
Posts
2
Posters
2.5k
Views
1
Watching
-
Hello, I want display in GUI a numbers 1 to 10 and I have this code:
@
QString rta;
for(int i = 0; i < 10; i++){
rta += i;
rta += "\n";
}
ui->tablero->setText(rta);@
I display in a QTextEdit but this code show symbols as ASCII ...not numbers :S what happened?
I need use a QString for concatenate.
Any comments suggestion recommendation? ... thanks for the time, I'm new to QT as 3 days ago I met him and I'm testing it