Qt 5.6 | Qt Widgets | Plug & Paint Extra Filters Example | extrafilters.pro Example File

Qt 5.6.3 Reference Documentation

# extrafilters.pro Example File

tools/plugandpaint/plugins/extrafilters/extrafilters.pro

      TEMPLATE      = lib
      CONFIG       += plugin
      QT           += widgets
      INCLUDEPATH  += ../../app
      HEADERS       = extrafiltersplugin.h
      SOURCES       = extrafiltersplugin.cpp
      TARGET        = $$qtLibraryTarget(pnp_extrafilters)
      DESTDIR       = ../../plugins

      # install
      target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tools/plugandpaint/plugins
      INSTALLS += target

      CONFIG += install_ok  # Do not cargo-cult this!