QString 类可以进行字符串与数字之间的转换,使用QLineEdit 就可以实现数字量的输入与 ... toInt();; str=ui->editPrice->text (); //读取"单价"; float price=str.
確定! 回上一頁