convert int to QString in qt c++ code example Example: from integer to qstring qt Use QString::number(): int i = 42; QString s = QString::number(i);