Is there a QString function which takes an int and outputs it as a QString?
QString
Just for completeness, you can use the standard library and do QString qstr = QString::fromStdString(std::to_string(42));
QString qstr = QString::fromStdString(std::to_string(42));