Questions tagged [qpalette]

The QPalette class contains color groups for each widget state.

The QPalette class contains color groups for each widget state.

A palette consists of three color groups: Active, Disabled, and Inactive. All widgets in Qt contain a palette and use their palette to draw themselves. This makes the user interface easily configurable and easier to keep consistent.

The color groups:

  • The Active group is used for the window that has keyboard focus.
  • The Inactive group is used for other windows
  • The Disabled group is used for widgets (not windows) that are disabled for some reason.
34 questions
0
votes
2 answers

QPalette Does not work in QTabBar?

I have Tabbar in my form, What I want is to differentiate Active and Inactive Tab with different color text in it. My code is as below. I don't understand what is missing in it, It always show QPalette::Active text color in all the tab QPalette…
0
votes
0 answers

How can I change color of checkBox in qt with using python?

I tried snipped code but somehow it didnt work for me. Any suggestions? checkBox.setPalette(QtGui.QPalette(QtGui.QColor(255,0,0)))
Umur Gurelli
  • 83
  • 2
  • 9
-1
votes
1 answer

QPalette has no attribute PlaceholderText?

I'm trying to build a Qt, but I get this error: C2039: "type object 'QPalette' has no attribute 'PlaceholderText'" I tried to find where I'm using PlaceholderText, but couldn't.
-1
votes
1 answer

QPalette for beginners - where to start

I recently made my first python and PyQt program and now I'm looking to play with colors to make it look good. I've been looking around the documentation and the QPalette documentation seems to suggest that a QPalette is the way to go as opposed to…
Spencer
  • 1,931
  • 1
  • 21
  • 44
1 2
3