ToolSeparator QML Type
Trennt eine Gruppe von Elementen in einer Symbolleiste von benachbarten Elementen. Mehr...
Import Statement: | import QtQuick.Controls |
Inherits: |
Eigenschaften
- horizontal : bool
- orientation : enumeration
- vertical : bool
Detaillierte Beschreibung
ToolSeparator wird verwendet, um Gruppen von Elementen in einer Symbolleiste visuell zu unterscheiden, indem sie durch eine Linie getrennt werden. Er kann in horizontalen oder vertikalen Symbolleisten verwendet werden, indem die Eigenschaft orientation auf Qt.Vertical
bzw. Qt.Horizontal
gesetzt wird.
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 } } }
Siehe auch ToolSeparator und Separator Controlsanpassen.
Eigenschaft Dokumentation
horizontal : bool |
Diese Eigenschaft gibt an, ob orientation gleich Qt.Horizontal
ist.
Sie ist nützlich für die Anpassung von ToolSeparator.
Siehe auch orientation und vertical.
orientation : enumeration |
Diese Eigenschaft gibt die Ausrichtung des ToolSeparators an.
Mögliche Werte:
Konstant | Beschreibung |
---|---|
Qt.Horizontal | Eine horizontale Trennlinie wird in einer vertikalen Symbolleiste verwendet. |
Qt.Vertical | Ein vertikales Trennzeichen wird in einer horizontalen Symbolleiste verwendet. (Standard) |
vertical : bool |
Diese Eigenschaft gibt an, ob orientation gleich Qt.Vertical
ist.
Sie ist nützlich für die Anpassung von ToolSeparator.
Siehe auch orientation und 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.