I created a special widget plugin. The plugin integrates perfectly with Qt Creator, but when I compile the program, I get this error:
"test.h: There is no such file or directory"
Where test.h is the name of the custom widget. What am I doing wrong? This is the application * .pro file:
TEMPLATE = app
SOURCES += main.cpp \
mainwindow.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
This is the plugin * .pro file:
CONFIG += designer plugin debug_and_release
TARGET = $$qtLibraryTarget(testplugin)
TEMPLATE = lib
HEADERS = testplugin.h
SOURCES = testplugin.cpp
RESOURCES = icons.qrc
target.path = $$[QT_INSTALL_PLUGINS]/designer
INSTALLS += target
include(test.pri)
source
share