Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
dev
-
None
-
c52ada54c (dev), 303d99113 (dev), b90b624ce (dev)
Description
This doesn't match the behaviour of e.g. a native Switch whose background follows the accent colour, as its background colour will remain unchanged when the window loses focus.
To reproduce, run the following snippet (after applying https://codereview.qt-project.org/c/qt/qtdeclarative/+/501482) and then open another window to make the Qt Quick window lose focus. The expected behaviour is that the Rectangle stays the colour it was (the accent colour) after the window loses focus. The actual behaviour is that it becomes #f0f0f0.
import QtQuick import QtQuick.Controls ApplicationWindow { id: root width: 400 height: 400 visible: true title: rect.color Rectangle { id: rect implicitHeight: 32 implicitWidth: 32 color: palette.accent } }
Attachments
Issue Links
- is required for
-
QTBUG-115165 Add missing controls (without QStyle support) to native styles
- Closed
- resulted in
-
QTBUG-117983 Remove private export macros
- Closed
Gerrit Reviews
For Gerrit Dashboard: QTBUG-116826 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
512560,1 | Allow QPalettePrivate to be used outside of qpalette.cpp | 6.6 | qt/qtbase | Status: NEW | 0 | 0 |
510330,7 | Export QPalettePrivate | dev | qt/qtbase | Status: MERGED | +2 | 0 |
510589,5 | Allow QPalettePrivate to be used outside of qpalette.cpp | dev | qt/qtbase | Status: MERGED | +2 | 0 |
510590,8 | QWindowsTheme: only set inactive accent color to Window if not set | dev | qt/qtbase | Status: MERGED | +2 | 0 |
510968,1 | Export QPalettePrivate | 6.6 | qt/qtbase | Status: ABANDONED | -1 | 0 |