customsortfiltermodel.pro Example File | Qt Widgets 5.9

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

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