ToolSeparator QML Type
Separa un grupo de elementos de una barra de herramientas de los elementos adyacentes. Más...
| Import Statement: | import QtQuick.Controls |
| Inherits: |
Propiedades
- horizontal : bool
- orientation : enumeration
- vertical : bool
Descripción detallada
ToolSeparator se utiliza para distinguir visualmente entre grupos de elementos en una barra de herramientas separándolos con una línea. Puede utilizarse en barras de herramientas horizontales o verticales estableciendo la propiedad orientation a Qt.Vertical o Qt.Horizontal, respectivamente.

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 } } }
Véase también Personalización de los controlesToolSeparator y Separator.
Documentación de propiedades
horizontal : bool [read-only]
Esta propiedad mantiene si orientation es igual a Qt.Horizontal.
Es útil para personalizar ToolSeparator.
Véase también orientation y vertical.
orientation : enumeration
Esta propiedad contiene la orientación del separador de herramientas.
Valores posibles:
| Constante | Descripción |
|---|---|
Qt.Horizontal | Un separador horizontal se utiliza en una barra de herramientas vertical. |
Qt.Vertical | Un separador vertical se utiliza en una barra de herramientas horizontal. (por defecto) |
vertical : bool [read-only]
Esta propiedad mantiene si orientation es igual a Qt.Vertical.
Es útil para personalizar ToolSeparator.
Véase también orientation y 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.