qt int to string code example
Example 1: from integer to qstring qt
Use QString::number():
int i = 42;
QString s = QString::number(i);
Example 2: qt int to string
int x = 56
QString str = QString::number(x);
//str == "56"
Use QString::number():
int i = 42;
QString s = QString::number(i);
int x = 56
QString str = QString::number(x);
//str == "56"