Qt Qss 设置 QPushButton 背景颜色
Qss 可以通过设置 'background-color' 属性来设置 QPushButton 的背景色。以下是一个示例:
QPushButton { background-color: red; }
上面的代码将 QPushButton 的背景色设置为红色。您可以将其替换为您想要的颜色。
原文地址: https://www.cveoy.top/t/topic/qs9Y 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
Qss 可以通过设置 'background-color' 属性来设置 QPushButton 的背景色。以下是一个示例:
QPushButton { background-color: red; }
上面的代码将 QPushButton 的背景色设置为红色。您可以将其替换为您想要的颜色。
原文地址: https://www.cveoy.top/t/topic/qs9Y 著作权归作者所有。请勿转载和采集!