Results 1 to 6 of 6

Thread: QFormbuilder : can not create widget of Q3ListView

  1. #1
    Join Date
    Jan 2007
    Posts
    92
    Thanks
    14
    Thanked 1 Time in 1 Post

    Default QFormbuilder : can not create widget of Q3ListView

    QT -4.2.2 Ver

    I have ported a application from Qt 3to 4 but I am having a problem with loading list-view items using Q3ListView class. The application compiles & builds fine but when trying to load list views it does notwork. The output windows displays message QFormBuilder ::Can not create widget of Q3ListView.I am using QFormBuilder class from QtDesigner module to load UI forms. QFormBuilder loads all other UI forms fine when there is no ListView items defined. But UI forms that contains Q3ListView items don't load at all. The application start crashing when you try to load UI widget or dialog with Q3list view items. I have tried to use QUILOader or QAbstractFormBulder still did not work. All plugins for Qt has been built properly. I have seen that above message for Q3GroupBox QFormBuilder ::Can not create widget of Q3GroupBox but when i changed Q3GroupBox to qt 4 QGroupBox in UI form it worked fine. However for time being I can not change Q3ListView to Model/View QTreeWidget .so I just want to keep Q3ListView. All other Qt3 support lib classes works fine.


    QFormBuilder builder;
    QFile file(strPath);
    file.open( QIODevice::ReadOnly );
    QWidget *myWidget = builder.load(&file,pParent);
    file.close();

    any hint or idea will work.

  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: QFormbuilder : can not create widget of Q3ListView

    Use QUiLoader instead of QFormBuilder. The latter does not support custom widget plugins (and Q3ListView is implemented inside a plugin) out of the box.

  3. #3
    Join Date
    Jan 2007
    Posts
    92
    Thanks
    14
    Thanked 1 Time in 1 Post

    Default Re: QFormbuilder : can not create widget of Q3ListView

    I have replaced with QUILoader to load UI files but still I am getting QFormBuilder: Cannot create widget of q3list view. I am not using formbuilder at all in my code. Even in pro file I have replaced with UiTools module to link against this lib. But still it is displaying in Qformbuilder :can not create widget.

  4. #4
    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: QFormbuilder : can not create widget of Q3ListView

    Do you have libqt3supportwidgets.so/dll/dylib in your QTDIR/plugins/designer directory?

  5. #5
    Join Date
    Jan 2007
    Posts
    92
    Thanks
    14
    Thanked 1 Time in 1 Post

    Default Re: QFormbuilder : can not create widget of Q3ListView

    Yes I have these libs in my plugins/designer folders. But I try to execute simple test application to load Q3support classes. However I noticed QUILoader is not loading any Q3Support at all on my system. For instace I have crated a UI form that consists of two frames One is QFrame and other is Q3Frame. When I executed the UI appeared with only Frame that was QFrame. The output message appeared QFormbuilder :: can not create widget of Q3Frame. It seems like a loader is not loading any Q3Support widgets or items. I have added all those QT += qt3support modules to pro file. even application builds fine but UI does not load Q3 support things. Do i need to change something in QUILoader.cpp source file?

  6. #6
    Join Date
    Jan 2007
    Posts
    92
    Thanks
    14
    Thanked 1 Time in 1 Post

    Default Re: QFormbuilder : can not create widget of Q3ListView

    Probelm solved. Qt 4.2.2 reinstallation fixed this problem.
    Anyways thanks for the quick reply.

Similar Threads

  1. When is the best time to delete a QCanvasItem
    By irudkin in forum Qt Programming
    Replies: 12
    Last Post: 8th March 2007, 21:28
  2. QFormbuilder - How to create widget
    By manivannan_1984 in forum Qt Programming
    Replies: 1
    Last Post: 8th September 2006, 18:47
  3. Pin/Unpin Dock Widget
    By charlesD in forum Newbie
    Replies: 1
    Last Post: 21st June 2006, 06:57
  4. How to create pop up widgets in designer.
    By gsQT4 in forum Qt Tools
    Replies: 1
    Last Post: 25th May 2006, 16:40
  5. [Qt 4.1.0] Split a widget on demand
    By Townk in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2006, 14:16

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.