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都会自 ...
随机推荐
- kafka基础知识点
1.安装: 1.1. 前置安装要求:java + zookeeper 1.2. 下载安装包:http://mirros.cnnic.cn/apache/kafka/0.9.00/kafka_2.10- ...
- webpack4打包nodejs项目进阶版——多页应用模板
前段时间我写了个打包nodejs项目的文章,点击前往 但是,问题很多.因为之前的项目是个历史遗留项目,重构起来可能会爆炸,当时又比较急所以就写个的适用范围很小的webpack的打包方法. 最近稍微得空 ...
- img图片不存在显示默认图
在项目中,我们使用img标签加载图片,有时候图片地址有可能失效,获取路径问题,导致图片加载失败,img标签就会显示alt内容.这时候用户体验不是很好,所以就需要显示一张默认图片. 第一种方式:使用jq ...
- 如何机智判断页面是刷新还是关闭,背景:vue项目,需求:关闭页面,下次直接跳到登陆页
最近项目有这么个需求:要在关闭当前系统的窗口的时候,退出登录, 因为如果不退出登录可能存在安全风险,其实我想说,电脑没事别借给别人活着离开工位记得一定要锁屏,其实我们设置了cookie失效时间的,过了 ...
- ES 07 - Elasticsearch查询文档的六种方法
目录 1 Query String Search(查询串检索) 2 Query DSL(ES特定语法检索) 3 Query Filter(过滤检索) 4 Full Text Search(全文检索) ...
- JVM回收器与调优
定义: 使用编程语言将GC算法实现出来,产生的程序就是垃圾搜集器了 JVM给了三种选择:串行收集器.并行收集器.并发收集器 串行搜集器(serial collector):它只有一条GC线程,且就像前 ...
- DotNetCore跨平台~2.0提前发布喽
回到目录 提前1个多月把2.0发布出来了,小微真的把持不住了,哈哈! windows上安装 http://mp.weixin.qq.com/s/ueJdhaBBCHga0sQlVD6YiQ https ...
- 引用KBC.PetroSIM.Interop的dll,在代码中调用时出现 80040154 没有注册类 的错误
失败的尝试: regsvr32注册:模块已加载,但找不到入口点DllRegisterServer regasm注册:需写上regasm的完整路径,注册成功,但问题依旧 将项目的平台改为x86:问题依旧 ...
- mysql命令行导入导出数据库
导出:1.在命令行里,进入mysql安装根目录下的bin目录下比如:D:\Program Files\MySQL\MySQL Server 5.0\bin输入 mysqldump -uroot -p ...
- Android AutoCompleteTextView和MultiAutocompleteTextView实现动态自动匹配输入的内容
AutoCompleteTextView MultiAutocompleteTextView 这两个控件长的很相似,功能也很相似. AutoCompleteTextView 功能: 动态匹配输入的内容 ...