- Qt 5.3
- Qt Quick Controls
- QML Types
- MenuSeparator QML Type
- Qt 5.3.2 Reference Documentation

# MenuSeparator QML Type

MenuSeparator provides a separator for items inside a menu. More...

Import Statement: | `import QtQuick.Controls 1.2`

- List of all members, including inherited members

## Properties

- type : enumeration
- visible : bool

## Detailed Description

    Menu {
        text: "Edit"

        MenuItem {
            text: "Cut"
            shortcut: "Ctrl+X"
            onTriggered: ...
        }

        MenuItem {
            text: "Copy"
            shortcut: "Ctrl+C"
            onTriggered: ...
        }

        MenuItem {
            text: "Paste"
            shortcut: "Ctrl+V"
            onTriggered: ...
        }
        MenuSeparator { }
        MenuItem {
            text: "Do Nothing"
            shortcut: "Ctrl+E,Shift+Ctrl+X"
            enabled: false
        }
    }

See also Menu and MenuItem.

## Property Documentation

type : enumeration

This property is read-only and constant, and its value is MenuItemType.Separator.

visible : bool

Whether the menu separator should be visible.