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.
Bookmarks