En esta página

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:

Control

Propiedades

Descripción detallada

ToolSeparator se utiliza para distinguir visualmente entre grupos de elementos en una barra de herramientas, separándolos con una línea. Se puede utilizar en barras de herramientas horizontales o verticales estableciendo la propiedad « orientation » en « Qt.Vertical » o « Qt.Horizontal », respectivamente.

Separador de herramientas que divide los botones de la barra de herramientas

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 se cumple si « orientation » es igual a « Qt.Horizontal ».

Resulta útil para personalizar ToolSeparator.

Véase también orientation y vertical.

orientation : enumeration

Esta propiedad define la orientación del separador de herramientas.

Valores posibles:

ConstanteDescripción
Qt.HorizontalSe utiliza un separador horizontal en una barra de herramientas vertical.
Qt.VerticalSe utiliza un separador vertical en una barra de herramientas horizontal. (por defecto)

vertical : bool [read-only]

Esta propiedad se cumple si « orientation » es igual a « Qt.Vertical ».

Resulta ú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.