Details
-
Bug
-
Resolution: Fixed
-
P5: Not important
-
6.9.0 Beta2
-
None
-
I am using Qt 5.15.2 MSVC 2019 x64 with Qt Creator 15.0 on Windows 11 x64
-
-
1832ac4d2 (dev), 20646e132 (6.9), 0f2d3dc7c (6.8)
Description
Building a QWidgets based project with Qt5.15.2 kit, if one changes the palette of a widget in the form designer, the generated code will not compile. The tool is setting the QPalette::Accent ColorRole which is not support in Qt < 6.6.0 (IIRC). There are several version checks in the generated code for other Palette operations. This one is missing.
#if QT_VERSION >= QT_VERSION_CHECK(6, 6, 0)
palette.setBrush(QPalette::Disabled, QPalette::Accent, brush1);
#endif
Attachments
Issue Links
- relates to
-
QTBUG-72555 Designer creating unsupported code for color palettes
-
- Closed
-