AbstractStyle QML Type

Abstract base type with properties common to both Style and Theme. More...

Import Statement: import Qt.labs.StyleKit
Inherits:

AbstractStylableControls

Inherited By:

Style and Theme

Properties

Detailed Description

AbstractStyle contains properties, such and fonts and palettes, that are common to both a Style and a Theme.

Note: Types in Qt.labs modules are not guaranteed to remain compatible in future versions.

Property Documentation

fonts : StyleFont

Grouped property for configuring per-control fonts. Fonts can be set for individual control types such as button, textField, or label.

 Style {
     fonts {
         system.pixelSize: 14
         button.bold: true
         textField.family: "Monospace"
     }
 }

palettes : StylePalette

Grouped property for configuring per-control palettes. Palettes can be set system-wide or for individual control types.

 light: Theme {
     palettes {
         system {
             window: "gainsboro"
             windowText: "black"
         }
         button.buttonText: "black"
         textField.text: "#4e4e4e"
     }
 }