Results 1 to 2 of 2

Thread: QUiLoader and custom widgets containing custom widgets

  1. #1
    Join Date
    Jun 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QUiLoader and custom widgets containing custom widgets

    Qt 4.6.2, MSVS C++ 2008

    I'm trying to use QUiLoader to load a custom widget that contains other custom widgets. When run, the console gives:

    QFormBuilder was unable to create a custom widget of the class 'SubCustomWidget'; defaulting to base class 'QWidget'.

    I have all the plugin directories added correctly as near as I can tell and my custom widgets work fine in QtDesigner, so I think they are created correctly. When I call QUiLoader's availableWidgets() function however, none of my custom widgets are listed.

    I read another thread that said something about creating a custom loader class by inheriting QUiLoader and re-implementing the createWidget() function, but that seems like a lot of work to get custom widgets into my application when getting them into Designer was so easy, plus, it means I have to go edit the custom loader class every time I build a new custom widget. I was wondering if there is some other trick I'm missing...

    - Aaron

  2. #2
    Join Date
    Feb 2012
    Posts
    16
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QUiLoader and custom widgets containing custom widgets

    was the problem solved??? I have the same problem

Similar Threads

  1. custom widgets in qt creator 4.6
    By tentakel in forum Newbie
    Replies: 3
    Last Post: 4th May 2010, 22:05
  2. Custom Widgets
    By walden02 in forum Qt Programming
    Replies: 3
    Last Post: 23rd December 2009, 11:43
  3. Replies: 0
    Last Post: 15th May 2009, 15:38
  4. Help with custom widgets!!
    By superteny in forum Qt Programming
    Replies: 4
    Last Post: 29th April 2009, 12:43
  5. custom widgets as plugins
    By cwalsh in forum Qt Programming
    Replies: 7
    Last Post: 22nd February 2006, 22:02

Tags for this Thread

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.