The second is a non-static function, which needs to be called by constructing a QString instance. setNum ( double n,char format = 'g ',int precision = 6)
Read more documents, don't hey me.