Sprintf isn't recommended in new code: http://qt-project.org/doc/qt-4.8/qstring.html#sprintf
Can you do QString::number(value) + "%" or QString("%1%%").arg(value) instead?