palette QML Basic Type
Available properties:
Property | Description |
---|---|
palette.alternateBase : color | Used as the alternate background color in item views with alternating row colors. |
palette.base : color | Used mostly as the background color for text editor controls and items views. It is usually white or another light color. |
palette.brightText : color | A text color that is very different from palette.windowText , and contrasts well with e.g. palette.dark . Typically used for text that needs to be drawn where palette.text , palette.windowText or palette.buttonText would give poor contrast, such as on highlighted buttons. |
palette.button : color | The general button background color. This background can be different from palette.window as some styles require a different background color for buttons. |
palette.buttonText : color | A foreground color used with the palette.button color. |
palette.dark : color | Darker than palette.button . |
palette.highlight : color | A color to indicate a selected item or the current item. |
palette.highlightedText : color | A text color that contrasts with palette.highlight . |
palette.light : color | Lighter than palette.button . |
palette.link : color | A text color used for hyperlinks. |
palette.linkVisited : color | A text color used for already visited hyperlinks. |
palette.mid : color | Between palette.button and palette.dark . |
palette.midlight : color | Between palette.button and palette.light . |
palette.shadow : color | A very dark color. |
palette.text : color | The foreground color used with palette.base . This is usually the same as the palette.windowText , in which case it must provide good contrast with palette.window and palette.base . |
palette.toolTipBase : color | Used as the background color for tooltips. |
palette.toolTipText : color | Used as the foreground color for tooltips. |
palette.window : color | A general background color. |
palette.windowText : color | A general foreground color. |
See also Control::palette, Popup::palette, ApplicationWindow::palette, and QPalette::ColorRole.
© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.