Qt Reference Documentation

# Master Detail Example

Files:

- sql/masterdetail/albumdetails.xml
- sql/masterdetail/database.h
- sql/masterdetail/dialog.cpp
- sql/masterdetail/dialog.h
- sql/masterdetail/mainwindow.cpp
- sql/masterdetail/mainwindow.h
- sql/masterdetail/main.cpp
- sql/masterdetail/masterdetail.pro
- sql/masterdetail/masterdetail.qrc

Images:

- sql/masterdetail/images/icon.png
- sql/masterdetail/images/image.png

The Master Detail Example shows how to present data from different data sources in the same application. The album titles, and the corresponding artists and release dates, are kept in a database, while each album's tracks are stored in an XML file.

The example also shows how to add as well as remove data from both the database and the associated XML file using the API provided by the QtSql and QtXml modules, respectively.