customsortfiltermodel.pro Example File | Qt Widgets 5.6

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

Qt 5.6.2 Reference Documentation

# customsortfiltermodel.pro Example File

itemviews/customsortfiltermodel/customsortfiltermodel.pro

      QT += widgets

      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