hi again, thanks a lot again. i have doing some test and i have got to load the plugin in qt creator. you are right, finally a include QtSvgPixmapCache.h and cpp to my .pro and i thinks it works. The .pro is this:
CONFIG += designer plugin
TARGET = $$qtLibraryTarget($$TARGET)
TEMPLATE = lib
QT += svg
QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/designer
HEADERS = qt5waybutton.h \
qt5waybuttonplugin.h qtsvgpixmapcache.h
SOURCES = qt5waybutton.cpp \
qt5waybuttonplugin.cpp qtsvgpixmapcache.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 qtsvgpixmapcache.h
SOURCES = qt5waybutton.cpp \
qt5waybuttonplugin.cpp qtsvgpixmapcache.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
Now, i am going to try the plugin in the designer.
Thanks a lot for your help.
Bookmarks