本页

Qt Quick 对话框

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

使用该模块

该模块的 QML 类型可通过QtQuick.Dialogs 导入获得。要使用这些类型,请在 .qml 文件中添加以下导入语句:

import QtQuick.Dialogs

参考

许可与归属

Qt Quick Dialogs 可在The Qt Company 的商业许可下使用。此外,它还可以在GNU Lesser General Public License 第 3 版GNU General Public License 第 2 版下使用。更多详情,请参阅Qt 许可

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