от целого числа до QString QT
Use QString::number():
int i = 42;
QString s = QString::number(i);
Prickly Pigeon
Use QString::number():
int i = 42;
QString s = QString::number(i);
int x = 56
QString str = QString::number(x);
//str == "56"