Qt 小部件的可自定义样式表属性的参考在哪里? [英] Where is a reference for the customizable stylesheet properties for Qt widgets?

查看:39
本文介绍了Qt 小部件的可自定义样式表属性的参考在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在努力学习如何使用样式表在 Qt 中自定义小部件的外观.

I've been struggling with learning how to use stylesheets to customize the look of my widgets in Qt.

例如,经过很多努力,我才发现,当鼠标悬停在 QComboBox 下拉菜单上时,决定文本颜色的属性名称是 selection-color,背景色为selection-background-color.但大部分是我通过随机猜测和检查发现的.

For example, after much effort, I just figured out that the name of the property that determines what color the text on a QComboBox drop-down menu is when it is mouse-over'd is selection-color, and the background color is selection-background-color. But most of that I discovered by random guess-and-check.

我在哪里可以找到可以真正告诉我这些事情的文档,这样我就不必猜测了?Qt 是否遵循某种标准命名约定?

Where can I find documentation that will actually tell me these things so I don't have to guess? Does Qt follow some sort of standard naming convention?

推荐答案

http://doc.qt.nokia.com/latest/stylesheet-reference.html

这篇关于Qt 小部件的可自定义样式表属性的参考在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆