I have a main widget derived from QWidget which I designed by manually coding. I was wondering if there is a way to add QtDesigner widget (ui) class to the main widget using addWidget function, or some other means. When I try to do addWidget in the MyMainWindow() function the program compiles fine, but the ui widget does not display. Thanks.


class MyMainWindow: public QWidget
{
Q_OBJECT
public:
int count;
MyCurve *c;
inputs *in; //ui designed widget
matrixVector A;
QHBoxLayout *layout;
QLineEdit *value;
QLineEdit *g1;
QLineEdit *g2;

MyMainWindow();
QMenu *fileMenu;
QMenuBar *menuBar;
QAction *openAction;
QAction *saveAction;


};