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都会自 ...
随机推荐
- 有趣的 box-decoration-break
这两天接触到一个很有意思的 CSS 属性 -- box-decoration-break.下面就一起去一探究竟. 因为 MDN 上关于这个属性,没有中文文档,所以一直在想一个合理贴切的中文翻译.直译一 ...
- java虚拟机内存区域
java虚拟机运行时数据 程序计数器 是一块较小的内存空间,属于线程私有的内存. 用来记录正在执行的虚拟机字节码指令的地址. 每个线程都需要一个独立的程序计数器,各个线程间的计数器互不影响,独立存储. ...
- CSS揭秘—灵活的背景图(三)
前言: 所有实例均来自<CSS揭秘>,该书以平时遇到的疑难杂症为引,提供解决方法,只能说秒极了,再一次刷新了我对CSS的认知 该书只提供了关键CSS代码,虽然有在线示例代码链接,但访问速度 ...
- Java数据结构和算法 - 数组
Q: 数组的创建? A: Java中有两种数据类型,基本类型和对象类型,在许多编程语言中(甚至面向对象语言C++),数组也是基本类型.但在Java中把数组当做对象来看.因此在创建数组时,必须使用new ...
- Python后台开发Django(启动)
Django版本为:2.1.7 Python的web框架,MTV思想 MVC Model(模板文件,数据库操作) view(视图模板文件 )controller(业务处理) MTV Model(模 ...
- 用ASP.NET Core 2.1 建立规范的 REST API -- HATEOAS
本文所需的一些预备知识可以看这里: http://www.cnblogs.com/cgzl/p/9010978.html 和 http://www.cnblogs.com/cgzl/p/9019314 ...
- DotNetCore跨平台~组件化时代来了
回到目录 进行dotnetcore之后,各种对象都是基于DI进行生产的,这就有了对象的生命周期一说,早在autofac里也有相关知识点,这与Microsoft.Extensions.Dependenc ...
- SmartSql Map
SmartSqlMap 属性 说明 Scope 域,用于SqlMap定义Sql声明范围 Statement标签 属性 说明 Id 唯一性编号 Cache 缓存策略编号,引用自Cache标签 State ...
- vue + element 动态渲染、移除表单并添加验证
博客地址:https://ainyi.com/66 又接到新需求了吧~~ 背景 在一个大表单里,有可能会出现这种需求,用户可以自己操作动态添加.移除表单,更加个性化的效果. 常见于填写个人信息.附加内 ...
- 从QA到工程能效团队
Engineering Productivity Productivity is our job; testing and quality are the job of everyone involv ...