Qt 5.11 | Qt SQL | Query Model Example | querymodel.pro Example File

Qt 5.11.3 Reference Documentation

# querymodel.pro Example File

querymodel/querymodel.pro

      HEADERS       = ../connection.h \
                      customsqlmodel.h \
                      editablesqlmodel.h
      SOURCES       = customsqlmodel.cpp \
                      editablesqlmodel.cpp \
                      main.cpp
      QT           += sql widgets
      requires(qtConfig(tableview))

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