AbstractStyle QML Type
Style とTheme の両方に共通するプロパティを持つ抽象基本型。詳細...
| Import Statement: | import Qt.labs.StyleKit |
| Inherits: | |
| Inherited By: | |
| Status: | Technology preview |
この型はテクノロジープレビュー段階にあり、変更される可能性があります。
プロパティ
詳細な説明
AbstractStyle には、Style およびTheme の両方に共通する、フォントやパレットなどのプロパティが含まれています。
注: Qt.labs モジュール内の型は、将来のバージョンでも互換性が維持されるとは限りません。
プロパティのドキュメント
fonts : StyleFont
fonts をコントロールごとに設定するためのグループ化されたプロパティです。ボタン、テキストフィールド、ラベルなど、個々のコントロールタイプごとにフォントを設定できます。
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.