hi,
I have designed a widget outside my project which has a widget.cpp, widget.h, widget.ui files now i have added these all files to my project, now i want to display this widget in my scene, so i have created a widget class object.

Qt Code:
  1. Widget *wid;
To copy to clipboard, switch view to plain text mode 

and used addWidget() method of QGraphicsScene class to add it to my widget.

Qt Code:
  1. scene.addWidget(wid,Qt::Widget);
To copy to clipboard, switch view to plain text mode 

but i am not able to add it, my application not at all starting, error is "application closed unexpectedly"
How can add a .ui form to a scene.