QString::number() would work better here.