Qt 5.11 | Qt SQL | Table Model Example | tablemodel.pro Example File

Qt 5.11.3 Reference Documentation

# tablemodel.pro Example File

tablemodel/tablemodel.pro

      HEADERS       = ../connection.h
      SOURCES       = tablemodel.cpp
      QT           += sql widgets
      requires(qtConfig(tableview))

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