Qt 进度条:改变颜色
Qt Progress Bar: change colour
有没有办法用 Qt 5.7 改变进度条的颜色?
例如,在Windows7个进度条出错时变成红色,我想做这样的事情。
如果您使用的是小部件,那么您就有可用的样式表。但是,您将无法保持 Windows 7 的原始外观。这是一个 example for the QProgressBar.
对于 QtQuick Progress 组件,您有 style
property available. Here is the documentation page with the example。
有没有办法用 Qt 5.7 改变进度条的颜色?
例如,在Windows7个进度条出错时变成红色,我想做这样的事情。
如果您使用的是小部件,那么您就有可用的样式表。但是,您将无法保持 Windows 7 的原始外观。这是一个 example for the QProgressBar.
对于 QtQuick Progress 组件,您有 style
property available. Here is the documentation page with the example。