我正在尝试使用 arg() 函数格式化 QString,如下所示:
QColor color = QColorDialog::getColor(Qt::blue, this);
....
QString tStr = QString("R: %1 G: %2 B: %3").arg( color.red(), color.green(), color.blue());
在这里,我得到一个“零异常的整数除法”。
背景:在 VS 2010 中使用 Qt 插件。全新的 Qt 框架。
有什么建议么?
谢谢