Separates a group of items in a toolbar from adjacent items. 更多...
| import 语句: | import QtQuick.Controls |
| 继承: |
ToolSeparator is used to visually distinguish between groups of items in a toolbar by separating them with a line. It can be used in horizontal or vertical toolbars by setting the
orientation
特性到
Qt.Vertical
or
Qt.Horizontal
,分别。
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 } } }
另请参阅 Customizing ToolSeparator and 分隔符控件 .
|
horizontal
:
bool
|
此特性保持是否
orientation
等于
Qt.Horizontal
.
It is useful for customizing ToolSeparator .
另请参阅 orientation and vertical .
|
orientation : enumeration |
This property holds the orientation of the tool separator.
可能的值:
| 常量 | 描述 |
|---|---|
Qt.Horizontal
|
A horizontal separator is used in a vertical toolbar. |
Qt.Vertical
|
A vertical separator is used in a horizontal toolbar. (default) |
|
vertical
:
bool
|
此特性保持是否
orientation
等于
Qt.Vertical
.
It is useful for customizing ToolSeparator .
另请参阅 orientation and horizontal .