在写Qt程序的时候关于类型转换的问题让我找了很长时间才找到,现在搞好了,给大家分享一下。 QString -> int. QString str = "123"; int number = str.toInt();
確定! 回上一頁