int main(int argc, char *argv[]){ QApplication a(argc, argv); QWidget w; OtherWidget * ow = new OtherWidget (&w); w.show(); return a.exec();}