QPalette
Help on class QPalette in module PyQt5.QtGui:
class QPalette(sip.simplewrapper)
| QPalette()
| QPalette(Union[QColor, Qt.GlobalColor, QGradient])
| QPalette(Qt.GlobalColor)
| QPalette(Union[QColor, Qt.GlobalColor, QGradient], Union[QColor, Qt.GlobalColor, QGradient])
| QPalette(Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient])
| QPalette(QPalette)
| QPalette(Any)
|
| Method resolution order:
| QPalette
| sip.simplewrapper
| builtins.object
|
| Methods defined here:
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __gt__(self, value, /)
| Return self>value.
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| alternateBase(...)
| alternateBase(self) -> QBrush
|
| base(...)
| base(self) -> QBrush
|
| brightText(...)
| brightText(self) -> QBrush
|
| brush(...)
| brush(self, QPalette.ColorGroup, QPalette.ColorRole) -> QBrush
| brush(self, QPalette.ColorRole) -> QBrush
|
| button(...)
| button(self) -> QBrush
|
| buttonText(...)
| buttonText(self) -> QBrush
|
| cacheKey(...)
| cacheKey(self) -> int
|
| color(...)
| color(self, QPalette.ColorGroup, QPalette.ColorRole) -> QColor
| color(self, QPalette.ColorRole) -> QColor
|
| currentColorGroup(...)
| currentColorGroup(self) -> QPalette.ColorGroup
|
| dark(...)
| dark(self) -> QBrush
|
| highlight(...)
| highlight(self) -> QBrush
|
| highlightedText(...)
| highlightedText(self) -> QBrush
|
| isBrushSet(...)
| isBrushSet(self, QPalette.ColorGroup, QPalette.ColorRole) -> bool
|
| isCopyOf(...)
| isCopyOf(self, QPalette) -> bool
|
| isEqual(...)
| isEqual(self, QPalette.ColorGroup, QPalette.ColorGroup) -> bool
|
| light(...)
| light(self) -> QBrush
|
| link(...)
| link(self) -> QBrush
|
| linkVisited(...)
| linkVisited(self) -> QBrush
|
| mid(...)
| mid(self) -> QBrush
|
| midlight(...)
| midlight(self) -> QBrush
|
| resolve(...)
| resolve(self, QPalette) -> QPalette
| resolve(self) -> int
| resolve(self, int)
|
| setBrush(...)
| setBrush(self, QPalette.ColorGroup, QPalette.ColorRole, Union[QBrush, QColor, Qt.GlobalColor, QGradient])
| setBrush(self, QPalette.ColorRole, Union[QBrush, QColor, Qt.GlobalColor, QGradient])
|
| setColor(...)
| setColor(self, QPalette.ColorGroup, QPalette.ColorRole, Union[QColor, Qt.GlobalColor, QGradient])
| setColor(self, QPalette.ColorRole, Union[QColor, Qt.GlobalColor, QGradient])
|
| setColorGroup(...)
| setColorGroup(self, QPalette.ColorGroup, Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient])
|
| setCurrentColorGroup(...)
| setCurrentColorGroup(self, QPalette.ColorGroup)
|
| shadow(...)
| shadow(self) -> QBrush
|
| swap(...)
| swap(self, QPalette)
|
| text(...)
| text(self) -> QBrush
|
| toolTipBase(...)
| toolTipBase(self) -> QBrush
|
| toolTipText(...)
| toolTipText(self) -> QBrush
|
| window(...)
| window(self) -> QBrush
|
| windowText(...)
| windowText(self) -> QBrush
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object (if defined)
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| Active = 0
|
| All = 5
|
| AlternateBase = 16
|
| Background = 10
|
| Base = 9
|
| BrightText = 7
|
| Button = 1
|
| ButtonText = 8
|
| ColorGroup = <class 'PyQt5.QtGui.QPalette.ColorGroup'>
| int(x=0) -> integer
| int(x, base=10) -> integer
|
| Convert a number or string to an integer, or return 0 if no arguments
| are given. If x is a number, return x.__int__(). For floating point
| numbers, this truncates towards zero.
|
| If x is not a number or if base is given, then x must be a string,
| bytes, or bytearray instance representing an integer literal in the
| given base. The literal can be preceded by '+' or '-' and be surrounded
| by whitespace. The base defaults to 10. Valid bases are 0 and 2-36.
| Base 0 means to interpret the base from the string as an integer literal.
| >>> int('0b100', base=0)
| 4
|
| ColorRole = <class 'PyQt5.QtGui.QPalette.ColorRole'>
| int(x=0) -> integer
| int(x, base=10) -> integer
|
| Convert a number or string to an integer, or return 0 if no arguments
| are given. If x is a number, return x.__int__(). For floating point
| numbers, this truncates towards zero.
|
| If x is not a number or if base is given, then x must be a string,
| bytes, or bytearray instance representing an integer literal in the
| given base. The literal can be preceded by '+' or '-' and be surrounded
| by whitespace. The base defaults to 10. Valid bases are 0 and 2-36.
| Base 0 means to interpret the base from the string as an integer literal.
| >>> int('0b100', base=0)
| 4
|
| Current = 4
|
| Dark = 4
|
| Disabled = 1
|
| Foreground = 0
|
| Highlight = 12
|
| HighlightedText = 13
|
| Inactive = 2
|
| Light = 2
|
| Link = 14
|
| LinkVisited = 15
|
| Mid = 5
|
| Midlight = 3
|
| NColorGroups = 3
|
| NColorRoles = 20
|
| NoRole = 17
|
| Normal = 0
|
| Shadow = 11
|
| Text = 6
|
| ToolTipBase = 18
|
| ToolTipText = 19
|
| Window = 10
|
| WindowText = 0
|
| __hash__ = None
|
| ----------------------------------------------------------------------
| Methods inherited from sip.simplewrapper:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __new__(*args, **kwargs) from sip.wrappertype
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from sip.simplewrapper:
|
| __dict__
QPalette的更多相关文章
- QPalette的用法
1.QPalette的概念 调色板类QPallete提供了颜色角色(color roles)概念,是指当前GUI界面中颜色的职责,通过枚举变量QPalette::ColorRole来定义, 比较常用的 ...
- Pyqt 设置 背景颜色和背景图片、 QPalette 调色板 与QPainter 画板区别 、 不规则图片
设置 背景颜色和背景图片 首先设置autoFillBackground属性为真然后定义一个QPalette对象设置QPalette对象的背景属性(颜色或图片)最后设置QWidget对象的Palette ...
- Qt编程18:Qt调色板QPalette的使用
QPalette类有两个枚举类型, 枚举 1.ColorGroup CorGroup指的是3中不同的状态(什么时候设置颜色): 1>Active:获得焦点的状态. 2>Inactive:未 ...
- 调色板类QPalette——包含了Qt窗口不见的颜色组(collor group),和Windows右键属性外观非常类似
QPalette类包含了Qt窗口不见的颜色组(collor group); 1.Active组,该组的颜色用户当前活动的(active)窗口,即具有键盘或鼠标焦点的窗口; 2.Inactive组,该组 ...
- Qt 设置背景图片3种方法(QPalette可以做无数的事情,一旦控件指定了调色板,就要乖乖听它的话;QPainter当场绘制当然也没有问题,还有就是QSS)
方法1. setStylSheet{"QDialog{background-image:url()"}} //使用styleSheet 这种方法的好处是继承它的dialog都会自 ...
- QPalette实例教程(QWidget自带的颜色设置工具,对Window的各个部分都可设置颜色)
QPalette是一款非常好用的颜色设置工具: 头文件:#include <QPalette> (^-^我没有用这个头文件也可以使用QPalette) 常用函数: void setBrus ...
- QT下的几种透明效果(QPalette背景白色,窗口设置setWindowOpacity,QPainter使用Clear模式绘图)
1.窗口整体透明,但是窗体上的控件不透明. 通过设置窗体的背景色来实现,将背景色设置为全透. QPalette pal = palette(); pal.setColor(QPalette::B ...
- qlineedit设置背景颜色(使用QPalette的方法不行,必须使用QSS)
使用QPalette的方法不行, ui->le_text->setAutoFillBackground(true);qDebug() << ui->le_text-> ...
- Qt 设置背景图片3种方法(三种方法:QPalette调色板,paintEvent,QSS)
方法1. setStylSheet{"QDialog{background-image:url()"}} //使用styleSheet 这种方法的好处是继承它的dialog都会自 ...
随机推荐
- npm 使用 taobao 的镜像后,无法 login & publish
使用 npm adduser,添加用户之后,没有异常消息,然后使用 npm publish 发布,却报错: 401 原来是 npm 使用 taobao 的镜像后,需要指定 --registry htt ...
- Linux 桌面玩家指南:10. 没有 GUI 的时候应该怎么玩
特别说明:要在我的随笔后写评论的小伙伴们请注意了,我的博客开启了 MathJax 数学公式支持,MathJax 使用$标记数学公式的开始和结束.如果某条评论中出现了两个$,MathJax 会将两个$之 ...
- redis发布订阅Java代码实现
Redis除了可以用作缓存数据外,另一个重要用途是它实现了发布订阅(pub/sub)消息通信模式:发送者(pub)发送消息,订阅者(sub)接收消息. 为了实现redis的发布订阅机制,首先要打开re ...
- java8 日期时间之间的关系
Class or Enum Year Month Day Hours Minutes Seconds* Zone Offset Zone ID toString Output Where Discu ...
- docker初体验,搭建自用的gitlab服务
一.前言 git在如日中天的版本管理系统,现在如果不是工作在git版本管理系统下,几乎都不好意思给人打招呼.现在就有现成的互联网的git服务器提供给大家使用,例如号称程序的社交网络github. 正好 ...
- springboot~添加新模块的方法
在springboot项目框架里,把一个项目两大模块,主项目main和测试项目test,而我们的测试项目根据功能又可以再分,比如可以有单元测试,集成测试,业务测试等等. 对于一个初学者来说,建立模块的 ...
- springboot~Profile开发环境与单元测试用不同的数据库
期望 希望开发环境dev用mysql 单元测试使用本机的h2数据库 引入依赖 compile('org.springframework.boot:spring-boot-starter-data-jp ...
- 实例分析C程序运行时的内存结构
先验知识 静态变量存储在静态存储区,局部变量存储在动态存储区(栈),代码存放在代码区 寄存器,EBP指向栈底,ESP指向栈顶,EIP指向正在执行指令的下一条指令,三个寄存器中保存的都是地址,32位 ...
- Scrum Mastery:有效利用组织的5个步骤
组织以什么样的方式能最大限度的发挥Scrum的优势?组织在哪些方面阻碍了个人的发展?Scrum是一种能使业务变得敏捷的框架.而组织恰恰需要变得敏捷.只是,组织本身有时候并没有足够的能力来帮助Scrum ...
- [深度应用]·首届中国心电智能大赛初赛开源Baseline(基于Keras val_acc: 0.88)
[深度应用]·首届中国心电智能大赛初赛开源Baseline(基于Keras val_acc: 0.88) 个人主页--> https://xiaosongshine.github.io/ 项目g ...