Details
-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.0
-
None
Description
For custom widgets it is often needed to use extra colors, and these colors also to be consistent across the application.
QPalette fits this role in general, problem is one is limited to the ColorRole-s, predefined.
This is very limiting for "standard" custom widgets, and even worse for "non-standard" widgets, based on QGraphicsWidgest, where look'n'feel must also be consistent, but not necessarily (most often not) based on platform's visuals.
Considering QPalette is not passed by pointer, there is no way to fix the situation, except reinventing the wheel.
Attachments
Issue Links
- depends on
-
QTBUG-82925 make QPalette extensible to support more color roles
- Reported
- relates to
-
QTBUG-92974 Easier palette switching
- Reported
-
QTBUG-979 Add color roles for warnings and errors
- Open
Gerrit Reviews
For Gerrit Dashboard: QTBUG-17015 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
88528,1 | QPalette: add support for three custom color roles | dev | qt/qtbase | Status: ABANDONED | -1 | 0 |