I was using a QFormBuilder to dynamically load a .ui file, embedded via .qrc and everything worked fine. Now I need to overload the

Qt Code:
  1. virtual void dragLeaveEvent ( QDragLeaveEvent * event )
To copy to clipboard, switch view to plain text mode 

method of a QWidgetList, so I've implemented
Qt Code:
  1. void MyListWidget::dragLeaveEvent ( QDragLeaveEvent * event )
To copy to clipboard, switch view to plain text mode 

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)