原文: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
- Jun 23 Tue 2015 11:26
-
[Qt] QString 轉 int
請先 登入 以發表留言。