Results 1 to 5 of 5

Thread: Designer plugin - creating a container widget

  1. #1
    Join Date
    Jan 2006
    Location
    Athens - Greece
    Posts
    219
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Designer plugin - creating a container widget

    Hi everybody,
    has anyone created a container widget in a designer plugin? I mean creating a plugin that when overiding the QWidgetPlugin::isContainer() returns true? I have created a widget that just inherits QDialog and nothing else, the plugin gets integrated nicely but the resulting widget is not editable from the designer. All the custom widgets, that are not container widgets, I have plugged into designer are working nicely.
    Last edited by yop; 8th August 2007 at 13:24.
    I love deadlines. I like the whooshing sound they make as they fly by.
    --
    Douglas Adams

  2. #2
    Join Date
    Mar 2007
    Posts
    74
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Designer plugin - creating a container widget

    I just posted a similar question. My container widget does allow me to drop controls
    onto it so I have that much. It does not appreciate an attempt to place those controls
    into a layout though...

  3. #3
    Join Date
    Jan 2006
    Location
    Athens - Greece
    Posts
    219
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Designer plugin - creating a container widget

    I can see that you are with Qt 4 having the same problem so we must be doing something wrong. But I can't see what this is...
    I love deadlines. I like the whooshing sound they make as they fly by.
    --
    Douglas Adams

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

    Default Re: Designer plugin - creating a container widget

    Quote Originally Posted by yop View Post
    Hi everybody,
    has anyone created a container widget in a designer plugin? I mean creating a plugin that when overiding the QWidgetPlugin::isContainer() returns true? I have created a widget that just inherits QDialog and nothing else, the plugin gets integrated nicely but the resulting widget is not editable from the designer. All the custom widgets, that are not container widgets, I have plugged into designer are working nicely.
    Don't make widgets that inherit QDialog. What's the point of doing that anyway? Have you tried inheriting QWidget instead?

    Quote Originally Posted by MrGarbage View Post
    I just posted a similar question. My container widget does allow me to drop controls
    onto it so I have that much. It does not appreciate an attempt to place those controls
    into a layout though...
    Hard to say anything without seeing your code...

  5. #5
    Join Date
    Jan 2006
    Location
    Athens - Greece
    Posts
    219
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Designer plugin - creating a container widget

    Quote Originally Posted by wysota View Post
    Don't make widgets that inherit QDialog. What's the point of doing that anyway? Have you tried inheriting QWidget instead
    Yeap, QWidget worked . In the doc examples the one available for custom container widgets does inherit from QDialog. Anyway I don't really care QWidget is enough for my plugin.
    I love deadlines. I like the whooshing sound they make as they fly by.
    --
    Douglas Adams

Similar Threads

  1. QPluginLoader not recognizing a plugin
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 29th June 2007, 14:13
  2. Qt Designer plugin on windows
    By big4mil in forum Newbie
    Replies: 4
    Last Post: 30th May 2007, 17:33
  3. Replies: 13
    Last Post: 15th December 2006, 11:52
  4. Size of a plugin widget in designer
    By high_flyer in forum Qt Programming
    Replies: 4
    Last Post: 28th February 2006, 13:29
  5. Managing widget plugin in Qt Designer
    By yellowmat in forum Newbie
    Replies: 8
    Last Post: 31st January 2006, 09:58

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.