Qt 5.6 | Qt SQL | Master Detail Example | masterdetail.pro Example File

Qt 5.6.2 Reference Documentation

# masterdetail.pro Example File

masterdetail/masterdetail.pro

      HEADERS   = database.h \
                  dialog.h \
                  mainwindow.h
      RESOURCES = masterdetail.qrc
      SOURCES   = dialog.cpp \
                  main.cpp \
                  mainwindow.cpp

      QT += sql widgets
      QT += xml widgets

      EXAMPLE_FILES = albumdetails.xml

      # install
      target.path = $$[QT_INSTALL_EXAMPLES]/sql/masterdetail
      INSTALLS += target