【问题标题】:QToolButton setStyleSheet works on win8, not win7?QToolButton setStyleSheet 适用于win8,而不是win7?
【发布时间】:2015-07-10 08:48:47
【问题描述】:

以下在 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; ");

【问题讨论】:

    标签: windows qt stylesheet


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-03-03
      • 2019-01-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-24
      相关资源
      最近更新 更多