Qt 5.11 | Qt Widgets | Custom Sort/Filter Model Example | customsortfiltermodel.pro Example File

Qt 5.11.3 Reference Documentation

# customsortfiltermodel.pro Example File

itemviews/customsortfiltermodel/customsortfiltermodel.pro

      QT += widgets
      requires(qtConfig(treeview))

      HEADERS     = mysortfilterproxymodel.h \
                    window.h \
                    filterwidget.h
      SOURCES     = main.cpp \
                    mysortfilterproxymodel.cpp \
                    window.cpp \
                    filterwidget.cpp

      RESOURCES +=  customsortfiltermodel.qrc

      # install
      target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/customsortfiltermodel
      INSTALLS += target