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

Qt 5.6.2 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

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