PDA

View Full Version : QFormBuilder+Designer's Promote to ...



OriginalCopy
7th November 2007, 20:33
I was using a QFormBuilder to dynamically load a .ui file, embedded via .qrc and everything worked fine. Now I need to overload the


virtual void dragLeaveEvent ( QDragLeaveEvent * event )

method of a QWidgetList, so I've implemented


void MyListWidget::dragLeaveEvent ( QDragLeaveEvent * event )

needed. Of course, I've also set "Promote to..." MyListWidget from the designer. Anyway, when running, the MyListWidget is not constructed, which seems pretty logical, the form builder does not know where the binary code of the compiled MyListWidget is. How to make that available to the QFormBuilder too ? (or some other alternatives)

jpn
7th November 2007, 22:04
I guess you would have to wrap the custom list widget into a designer plugin. Anyway, one might to ask what's the real benefit of loading .ui files dynamically but still embedding them as resources?

OriginalCopy
8th November 2007, 17:43
Thank you for the advice, now I'm fully relying on uic.