diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2023-05-23 07:40:38 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2023-05-23 07:50:29 +0200 |
commit | 0d1f39bab66f37d8f1fab87bd270c39e61e6c68a (patch) | |
tree | 81f01281be209a5b06d39f0e038b34134fe3c766 | |
parent | 959f42e11fd4e75a6661bea6fe273f3d6adaff4f (diff) |
doc: Explain that AppWindow.palette doesn't affect all Controls styles
Amends f1e7e1c3987b905157a1b9b418ea2649100eb390
Pick-to: 6.5
Change-Id: I75c5e661cdf561674870e694160e40c013eed491
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r-- | src/quick/items/qquickpalette.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/quick/items/qquickpalette.cpp b/src/quick/items/qquickpalette.cpp index 463dd8a926..824a0bf096 100644 --- a/src/quick/items/qquickpalette.cpp +++ b/src/quick/items/qquickpalette.cpp @@ -98,7 +98,12 @@ static constexpr bool is_valid(QPalette::ColorGroup cg) noexcept This approach is especially convenient when you need to specify a whole palette with all color groups; but as with the other cases above, the - colors that are not specified are intialized from SystemPalette. + colors that are not specified are initialized from SystemPalette, or + potentially the \l {Styling Qt Quick Controls}{Qt Quick Controls style}, + if one is in use. + + \note Some Controls styles use some palette colors, but many styles use + independent colors. \sa Window::palette, Item::palette, Popup::palette, SystemPalette */ |