原文:http://stackoverflow.com/questions/16633555/how-to-convert-qstring-to-intAbcd.split(" ")[0].toInt()//convert the first part to Int
--
QString Abcd="123.5 Kb"
Abcd.split(" ")[0].toDouble()//convert the first part to double
Abcd.split(" ")[0].toFloat()//convert the first part to double
文章標籤
全站熱搜
