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
Ausführliche Beschreibung
ToolSeparator dient dazu, Gruppen von Elementen in einer Symbolleiste durch eine Trennlinie optisch voneinander abzugrenzen. Es kann in horizontalen oder vertikalen Symbolleisten verwendet werden, indem die Eigenschaft „ orientation “ entsprechend auf „ Qt.Vertical “ oder „ 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 „Anpassen von ToolSeparator - und Separator-Steuerelementen“.
Dokumentation zu den Eigenschaften
horizontal : bool [read-only]
Diese Eigenschaft gilt unabhängig davon, ob „ orientation “ gleich „ Qt.Horizontal “ ist.
Dies ist nützlich für die Anpassung von „ToolSeparator“.
Siehe auch „ orientation “ und „ vertical “.
orientation : enumeration
Diese Eigenschaft legt die Ausrichtung des Werkzeugtrennzeichens fest.
Mögliche Werte:
| Konstant | Beschreibung |
|---|---|
Qt.Horizontal | In einer vertikalen Symbolleiste wird ein horizontaler Trennbalken verwendet. |
Qt.Vertical | In einer horizontalen Symbolleiste wird ein vertikaler Trennbalken verwendet. (Standard) |
vertical : bool [read-only]
Diese Eigenschaft gilt unabhängig davon, ob orientation gleich Qt.Vertical ist.
Dies ist nützlich für die Anpassung von „ToolSeparator“.
Siehe auch „ orientation “ und „ horizontal “.
© 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.