PDA

View Full Version : I dont see my custom widgets as a plugin ...



tonnot
27th October 2010, 19:13
The files dll and lib_####.a are generated at build-desktop folder.
But I dont see my custom widgets, and I copy the .a and dll files by hand to qt\plugins\designer
My pro file is the next :


QT += core gui

TEMPLATE = lib

CONFIG += designer \
plugin \
release \
warn_on \

TARGET = gui_plugins

target.path += $$[QT_INSTALL_PLUGINS]/designer
INSTALLS += target

INCLUDEPATH += ../AnalogWidgets/analogwidgets/analogwidgets \
../AnalogWidgets/analogwidgets/code

HEADERS += \
../AnalogWidgets/analogwidgets/analogwidgets/wallclock.h \
../AnalogWidgets/analogwidgets/analogwidgets/led.h \
../AnalogWidgets/analogwidgets/plugins/led_plugin.h \
../AnalogWidgets/analogwidgets/plugins/wallclock_plugin.h \
../AnalogWidgets/analogwidgets/analogwidgets/widgetwithbackground.h

SOURCES += \
../AnalogWidgets/analogwidgets/code/wallclock.cpp \
../AnalogWidgets/analogwidgets/code/widgetwithbackground.cpp \
../AnalogWidgets/analogwidgets/code/led.cpp \
../AnalogWidgets/analogwidgets/plugins/wallclock_plugin.cpp \
../AnalogWidgets/analogwidgets/plugins/led_plugin.cpp

FORMS +=

Any help ?

wysota
27th October 2010, 19:19
You shouldn't be getting any .a files for plugins. You must have done something wrong.

tonnot
27th October 2010, 19:27
This custom widgets are part of the analogwidgets from 3electrons (it works fine If I use it using promote approach)
I think there is something I do bad at the .pro file.
But I follow the rules...
What's happen ?
Please help, I have spent almost a week to learn custom widgets and plugins.....

wysota
27th October 2010, 19:37
There is a tutorial on writing a custom widget plugin in the documentation.

tonnot
27th October 2010, 19:41
I'm going to read it again.
Thanks