ToolSeparator QML Type
ツールバー内のアイテムのグループを隣接するアイテムから分離する。詳細...
Import Statement: | import QtQuick.Controls |
Inherits: |
プロパティ
- horizontal : bool
- orientation : enumeration
- vertical : bool
詳細説明
ToolSeparator は、ツールバー内のアイテムのグループを線で区切って視覚的に区別するために使用します。これは、orientation プロパティをそれぞれQt.Vertical
またはQt.Horizontal
に設定することで、水平または垂直のツールバーで使用できます。
ToolBar { RowLayout { anchors.fill: parent ToolButton { text: qsTr("Action 1") } ToolButton { text: qsTr("Action 2") } ToolSeparator {} ToolButton { text: qsTr("Action 3") } ToolButton { text: qsTr("Action 4") } ToolSeparator {} ToolButton { text: qsTr("Action 5") } ToolButton { text: qsTr("Action 6") } Item { Layout.fillWidth: true } } }
ToolSeparatorおよびSeparatorコントロールのカスタマイズも参照してください 。
プロパティ Documentation
horizontal : bool |
このプロパティは、orientation がQt.Horizontal
と等しいかどうかを保持します。
ToolSeparator をカスタマイズするのに便利です。
orientation およびverticalも参照してください 。
orientation : enumeration |
このプロパティは、ツールセパレータの向きを保持します。
取り得る値:
定数 | 説明 |
---|---|
Qt.Horizontal | 水平セパレータは、垂直ツールバーで使用されます。 |
Qt.Vertical | 垂直セパレータは、水平ツールバーで使用されます。(デフォルト) |
vertical : bool |
このプロパティは、orientation がQt.Vertical
と等しいかどうかを保持します。
ToolSeparator をカスタマイズするのに便利です。
orientation およびhorizontalも参照してください 。
© 2025 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.