Thanks for your fast reply. Yes, the example uses svg and the "qt5waybutton.cpp" includes "qtsvgpixmapcache.h". I have tried to put the line that you told me in the .pro, and the result is the same. ¿Have i do something else with the svg module?The .pro is the next:
CONFIG += designer plugin
TARGET = $$qtLibraryTarget($$TARGET)
TEMPLATE = lib
QT += svg
QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/designer
HEADERS = qt5waybutton.h \
qt5waybuttonplugin.h \
SOURCES = qt5waybutton.cpp \
qt5waybuttonplugin.cpp
# install
target.path = $$[QT_INSTALL_PLUGINS]/designer
sources.files = $$SOURCES $$HEADERS *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/designer/qt5waybuttonplugin
INSTALLS += target sources
CONFIG += designer plugin
TARGET = $$qtLibraryTarget($$TARGET)
TEMPLATE = lib
QT += svg
QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/designer
HEADERS = qt5waybutton.h \
qt5waybuttonplugin.h \
SOURCES = qt5waybutton.cpp \
qt5waybuttonplugin.cpp
# install
target.path = $$[QT_INSTALL_PLUGINS]/designer
sources.files = $$SOURCES $$HEADERS *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/designer/qt5waybuttonplugin
INSTALLS += target sources
To copy to clipboard, switch view to plain text mode
Sorry, i am a bit new in this.
Bookmarks