Qt 5.6 | Qt Widgets | Style Plugin Example | stylewindow.pro Example File

Qt 5.6.2 Reference Documentation

# stylewindow.pro Example File

tools/styleplugin/stylewindow/stylewindow.pro

      QT += widgets

      HEADERS    = stylewindow.h
      SOURCES    = stylewindow.cpp \
                   main.cpp

      TARGET     = styleplugin
      win32 {
          debug:DESTDIR = ../debug/
          release:DESTDIR = ../release/
      } else {
          DESTDIR    = ../
      }

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

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