【发布时间】:2015-05-08 09:01:41
【问题描述】:
我有一个从 QWidget 派生的类(例如 MyWidget)。我在下面写了一些代码:
// qStr is QString type;
// iSize is int type;
QFont font(qStr, iSize, QFont::Normal);
myWidget->setFont(font);
myWidget->update();
这些代码在 Windows 上运行良好,但在 OS X 上运行良好。问题的原因可能是什么?
更新-------------------
我的同事刚刚删除了该功能,这意味着现在不允许使用“setFont”。所以我放弃了。
【问题讨论】:
-
第二种情况下
qStr的值是多少(在 OS X 上)?
标签: qt