Qt Quick Dialogs QML Types

Qt Quick Dialogs 模块允许通过 QML 创建系统对话框并与之交互。该模块在 Qt 6.2 中引入。

可在.qml 文件中使用以下导入语句将 QML 类型导入应用程序:

import QtQuick.Dialogs

QML 类型

ColorDialog

彩色对话框

Dialog

本地对话框基类

FileDialog

文件对话框

FolderDialog

本地文件夹对话框

FontDialog

字体对话框

MessageDialog

消息对话框

© 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.