QString::number would work here as well without having to create a scratch variable.