Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在用 QtD 编写一个简单的 Python GUI。我不知道(如果可能的话)如何更改 LCD 数字的颜色。它们与背景颜色相同,很难看到。任何帮助表示赞赏。
谢谢。
设置样式表对我来说似乎很好。在 QDesigner 中,右键单击 lcd 小部件(或者更好的是顶部小部件),单击“更改样式表”并粘贴以下文本:
QLCDNumber{ color: rgb(255, 89, 242); background-color: rgb(0, 85, 0); }
当你按下 OK 时,你应该有一个 QLCDNumber 与绿色背景上的粉红色数字
我只是随意挑选了一些颜色,不要以可怕的组合来评判我!;)