主详细示例

主详情示例展示了如何在同一应用程序中显示来自不同数据源的数据。专辑名称、相应的艺术家和发行日期保存在数据库中,而每张专辑的曲目则保存在 XML 文件中。

该示例还展示了如何分别使用Qt SQLQt XML 模块提供的 API 从数据库和相关 XML 文件中添加和删除数据。

示例项目 @ code.qt.io

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