Results 1 to 5 of 5

Thread: How to load custom widget with qt-4.1 version designer

  1. #1
    Join Date
    Feb 2006
    Posts
    32
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Talking How to load custom widget with qt-4.1 version designer

    I have some problem for custom widget with qt-4.1 version. I tried with the analogclock example provided with qt-4.1 version release. I modifed the class name from AnalogClock to Clock, did consequent changes with plugin class. Then I did qmake on .pro file and make. By make, libraries are created in $qtroot/plugins/designer dir. Now When I am running designer, custom widgets are not loaded in the designer. I went through the manual many times, not able to load custom widgets in designer.

    Actually I am in initial stage for qt-4.1, therefore got the problem. Expecting a good response from u all.

    Thanks
    Jnana

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to load custom widget with qt-4.1 version designer

    Make sure you build the plugin in release mode. What file did you get after the build was complete? And did you put it into the appropriate place? ($QTDIR/plugins/designer/)

  3. #3
    Join Date
    Feb 2006
    Posts
    32
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to load custom widget with qt-4.1 version designer

    Hi Wysota,

    Thanks alot, It is working fine with release mode.

    Thanks
    Jnana

  4. #4

    Default Re: How to load custom widget with qt-4.1 version designer

    I have a question about plugins/custom widgets in Designer as well....

    In Designer for 3.3, it allowed you to define a custom widget without actually creating a plugin. In Designer 4, you have to "promote" to a custom widget. When promoting to a custom widget, I don't see custom signals and slots.

    Is there a way to define custom widgets in Designer 4.1 without using a plugin that will allow me to use the signals/slots that I have defined in my custom widget?

    -Chris

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to load custom widget with qt-4.1 version designer

    With Designer 4 you have to subclass anyway, so you can connect those in the subclass. I belive that's why the Trolls didn't put that functionality into widget promoting. It would just make things complex without any gain (remember that widget promotion is a substitution of one widget with another in the resulting code, nothing more).

Similar Threads

  1. Designer doesn't load wwWidgets plugin
    By reimer in forum Installation and Deployment
    Replies: 21
    Last Post: 7th February 2009, 04:23
  2. Custom widget - Only works in Designer
    By Darhuuk in forum Qt Tools
    Replies: 6
    Last Post: 8th January 2008, 01:46
  3. Distributing QT application for Mac OS
    By mb0 in forum Qt Programming
    Replies: 1
    Last Post: 31st May 2007, 19:59
  4. Replies: 15
    Last Post: 21st April 2007, 18:46
  5. Replies: 4
    Last Post: 6th February 2006, 15:30

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.