float will auto-promote to double when needed float pi = 3.14; QString b = QString::number(pi);. should work. otherwise you can use setNum:
確定! 回上一頁