- Qt 6.11
- Qt Labs StyleKit
- QML Types
- AbstractStyle
- Qt 6.11.1 Reference Documentation

# 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

- List of all members, including inherited members

## Properties

- fonts : StyleFont
- palettes : StylePalette

## 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"
         }
     }