【问题标题】:PCManFM-Qt. How to change the background color?PCManFM-Qt。如何更改背景颜色?
【发布时间】:2021-09-09 17:44:31
【问题描述】:

我想更改 LxQt 的文件管理器 PCManFM-Qt 的背景颜色。我现在可以将自定义样式表与选项 -stylesheet 一起使用。我找到了 Gammaray 程序,一个类似于 gtk-inspector 的程序。经过一番尝试,我得到了一些与羽毛垫一起使用的东西。 css代码:

#centralWidget{ background-color: red; }

有效,但我无法将 QTextEdit 小部件设为红色。我不关心羽毛垫,因为我想改变 PCManFM-Qt 的背景颜色。

【问题讨论】:

    标签: qt qt5 qtstylesheets pcmanfm


    【解决方案1】:

    试试QTextEdit { background-color: red; },或者类似的

    Qt 必须知道应用 CSS 道具的对象。

    【讨论】:

    • 已经试过了。我想我应该传递所有的小部件层次结构。
    • 像这样* QTextEdit { background-color: red; }
    • 已经试过了。我对 QTextEdit 不感兴趣。
    猜你喜欢
    • 1970-01-01
    • 2011-11-11
    • 1970-01-01
    • 2011-02-17
    • 1970-01-01
    • 2016-04-08
    • 2018-02-13
    • 2012-01-02
    • 2022-01-21
    相关资源
    最近更新 更多