Results 1 to 4 of 4

Thread: Custom Widget Collection

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2009
    Posts
    27
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Custom Widget Collection

    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 :-)
    Last edited by rockballad; 24th October 2009 at 17:06. Reason: updated contents

Similar Threads

  1. How to use custom widget editor with QItemDelegate
    By wysman in forum Qt Programming
    Replies: 2
    Last Post: 20th May 2009, 18:20
  2. Custom Scroll Widget Sizing Problem
    By sepehr in forum Qt Programming
    Replies: 2
    Last Post: 28th November 2008, 11:42
  3. Custom Widget - First Steps
    By sekatsim in forum Qt Programming
    Replies: 8
    Last Post: 26th June 2008, 17:19
  4. Custom widget
    By zorro68 in forum Qt Programming
    Replies: 7
    Last Post: 28th January 2008, 14:06
  5. custom plug-in widget in another custom plug-in widget.
    By MrGarbage in forum Qt Programming
    Replies: 6
    Last Post: 27th August 2007, 15:38

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.