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的更多相关文章

  1. QPalette的用法

    1.QPalette的概念 调色板类QPallete提供了颜色角色(color roles)概念,是指当前GUI界面中颜色的职责,通过枚举变量QPalette::ColorRole来定义, 比较常用的 ...

  2. Pyqt 设置 背景颜色和背景图片、 QPalette 调色板 与QPainter 画板区别 、 不规则图片

    设置 背景颜色和背景图片 首先设置autoFillBackground属性为真然后定义一个QPalette对象设置QPalette对象的背景属性(颜色或图片)最后设置QWidget对象的Palette ...

  3. Qt编程18:Qt调色板QPalette的使用

    QPalette类有两个枚举类型, 枚举 1.ColorGroup CorGroup指的是3中不同的状态(什么时候设置颜色): 1>Active:获得焦点的状态. 2>Inactive:未 ...

  4. 调色板类QPalette——包含了Qt窗口不见的颜色组(collor group),和Windows右键属性外观非常类似

    QPalette类包含了Qt窗口不见的颜色组(collor group); 1.Active组,该组的颜色用户当前活动的(active)窗口,即具有键盘或鼠标焦点的窗口; 2.Inactive组,该组 ...

  5. Qt 设置背景图片3种方法(QPalette可以做无数的事情,一旦控件指定了调色板,就要乖乖听它的话;QPainter当场绘制当然也没有问题,还有就是QSS)

    方法1. setStylSheet{"QDialog{background-image:url()"}}  //使用styleSheet 这种方法的好处是继承它的dialog都会自 ...

  6. QPalette实例教程(QWidget自带的颜色设置工具,对Window的各个部分都可设置颜色)

    QPalette是一款非常好用的颜色设置工具: 头文件:#include <QPalette> (^-^我没有用这个头文件也可以使用QPalette) 常用函数: void setBrus ...

  7. QT下的几种透明效果(QPalette背景白色,窗口设置setWindowOpacity,QPainter使用Clear模式绘图)

    1.窗口整体透明,但是窗体上的控件不透明.    通过设置窗体的背景色来实现,将背景色设置为全透. QPalette pal = palette(); pal.setColor(QPalette::B ...

  8. qlineedit设置背景颜色(使用QPalette的方法不行,必须使用QSS)

    使用QPalette的方法不行, ui->le_text->setAutoFillBackground(true);qDebug() << ui->le_text-> ...

  9. Qt 设置背景图片3种方法(三种方法:QPalette调色板,paintEvent,QSS)

    方法1. setStylSheet{"QDialog{background-image:url()"}}  //使用styleSheet 这种方法的好处是继承它的dialog都会自 ...

随机推荐

  1. SDL 开发实战(七): SDL 多线程与锁机制

    为什么要用多线程?在音视频领域主要是实现音视频同步.实现了音视频同步,我们的播放器就基本上合格了. 这里我们将讲解一下SDL的多线程与锁机制. 多线程的好处主要是能使程序更加充分利用硬件(主要是CPU ...

  2. 测试输出System.err与System.out

    来源:http://www.cnblogs.com/guozp/p/6099902.html 1.System.out在JVM和操作系统都具有缓存功能,输出的东西不一定实时输出,可能积累几个字符才会一 ...

  3. Python基础(os模块)

    os模块用于操作系统级别的操作: os.getcwd() 获取当前工作目录,即当前python脚本工作的目录路径 os.chdir("dirname") 改变当前脚本工作目录:相当 ...

  4. 设计一个可拔插的 IOC 容器

    前言 磨了许久,借助最近的一次通宵上线 cicada 终于更新了 v2.0.0 版本. 之所以大的版本号变为 2,确实是向下不兼容了:主要表现为: 修复了几个反馈的 bug. 灵活的路由方式. 可拔插 ...

  5. Python+requests+unittest+excel实现接口自动化测试框架

    一.框架结构:  工程目录 二.Case文件设计 三.基础包 base 3.1 封装get/post请求(runmethon.py) import requests import json class ...

  6. 利用GitLab webhook来实现触发Jenkins自动操作

    本文针对如何设置GitLab以及Jenkins,实现每次GitLab上有提交事件的时候,都能触发Jenkins执行相应的操作,主要分为以下几个步骤: 1.新建GitLab测试用例 进入个人GitLab ...

  7. 微信小程序开发01-小程序的执行流程是怎么样的?

    前言 我们这边最近一直在做基础服务,这一切都是为了完善技术体系,这里对于前端来说便是我们需要做一个Hybrid体系,如果做App,React Native也是不错的选择,但是一定要有完善的分层: ① ...

  8. SpringBoot + Spring Security 学习笔记(二)安全认证流程源码详解

    用户认证流程 UsernamePasswordAuthenticationFilter 我们直接来看UsernamePasswordAuthenticationFilter类, public clas ...

  9. 1.3创建项目「深入浅出ASP.NET Core系列」

    控制台创建项目 dotnet new --help 使用控制台采集项目,务必要熟练使用命令,--help是命令帮助的指明灯,在你无法google的时候,可以离线状态最快的帮助到你. 根据模板名称,我们 ...

  10. SLAM+语音机器人DIY系列:(四)差分底盘设计——1.stm32主控硬件设计

    摘要 运动底盘是移动机器人的重要组成部分,不像激光雷达.IMU.麦克风.音响.摄像头这些通用部件可以直接买到,很难买到通用的底盘.一方面是因为底盘的尺寸结构和参数是要与具体机器人匹配的:另一方面是因为 ...