Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

plugin.pro Example File

tools/styleplugin/plugin/plugin.pro
TEMPLATE    = lib
CONFIG     += plugin
QT         += widgets
HEADERS     = simplestyle.h \
              simplestyleplugin.h
SOURCES     = simplestyle.cpp \
              simplestyleplugin.cpp
TARGET      = simplestyleplugin
win32 {
    CONFIG(debug, release|debug):DESTDIR = ../debug/styles/
    CONFIG(release, release|debug):DESTDIR = ../release/styles/
} else {
    DESTDIR = ../styles/
}

EXAMPLE_FILES += simplestyle.json

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

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