QToolButton setStyleSheet适用于win8,而不是win7?

时间:2015-07-10 08:48:47

标签: windows qt stylesheet

以下在Windows 8.1上完美无缺,但在Windows 7上无效。问题是在Win7上setStyleSheet无效(在8.1上编译并部署到7)。

任何解释或解决方法?

QToolButton* button = findChild<QToolButton*>( QString::number(buttonIdx) );

button->setStyleSheet("background-color: yellow; border-style: outset; border-width: 3px; border-radius: 5px; border-color: red; font: bold 10px; min-width: 1em; padding: 3px; ");

1 个答案:

答案 0 :(得分:0)

问题是我早先从Qt5.2升级到5.4。 我没有在部署中包含更新的qt-dll和平台。

相关问题