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

Qt 5.11.3 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
      requires(qtConfig(tableview))

      EXAMPLE_FILES = albumdetails.xml

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