分隔符控件
Qt Quick Controls 提供多种分隔符选择。
将菜单中的一组项目与相邻项目分隔开来 | |
将工具栏中的一组项目与相邻项目分开 |
每种分隔符都有其特定的使用情况。以下各节提供了根据使用情况选择合适分隔符类型的指南。
菜单分隔符控件
MenuSeparator 应用于分隔菜单中的项目(通常是 控件)。将相关的菜单项组合在一起可使用户更容易与菜单进行交互。例如,一个典型的桌面用户界面可能将 和 项目归为一组,将 、 和 归为另一组。MenuItem Undo
Redo
Cut
Copy
Paste
工具分隔符控件
ToolSeparator 应用于分隔 中的项目(通常是 控件)。它可用于水平或垂直工具栏。ToolBar ToolButton
相关信息
© 2025 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.