このページでは

AbstractStyle QML Type

StyleTheme の両方に共通するプロパティを持つ抽象基底型。詳細...

Import Statement: import Qt.labs.StyleKit
Inherits:

AbstractStylableControls

Inherited By:

Style and Theme

プロパティ

詳細説明

AbstractStyle には、StyleTheme の両方に共通するフォントやパレットなどのプロパティが含まれています。

注意: Qt.labs モジュールの型は、将来のバージョンでも互換性が保たれることを保証するものではありません。

プロパティの説明

fonts : StyleFont

コントロールごとに設定するためのグループ化されたプロパティfonts 。フォントは、button、textField、label などの個々のコントロール・タイプに対して設定することができます。

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

palettes : StylePalette

コントロールごとに設定するためのグループ化されたプロパティpalettes 。パレットは、システム全体または個々のコントロールタイプに対して設定できます。

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

© 2026 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.