Hi,
I created individual custom widget successfully. Now I wanna combine them into one lib. For example:
+ Dog-house (custom widget 1) with a class named Kiki--> dog.dll
+ Cat-house (custom widget 2) with a class named Kitty --> cat.dll
Now I wanna put them into Animal (custom widget) --> animal.dll
Method1: include source code of 2 classes above in the animal project (separate files or in one file). Built successfully. Loaded in Designer. But can't build in testing project. Error is:
release/dialog.o:dialog.cpp::-1: error: undefined reference to `Kiki::Kiki(QWidget*)'
although I did add "LIBS += animal.dll".
Method2: make use of above dlls (not include classes in source code). I have to make new dlls where they don't have Q_EXPORT_PLUGIN2. But the output dll (animal.dll) - can't be loaded in Designer.
For each method, could you please tell me how to solve the problem? In fact I prefer the second, but I don't know if it's possible.
Thank you in advance :-)
Bookmarks