what do you mean? this?
Qt Code:
  1. ...
  2. void MyWidget::showNewWidget()
  3. {
  4. MyAnotherWidget *maw = new MyAnotherWidget(this);
  5. maw->setAttribute(Qt::WA_DeleteOnClose);
  6. connect(maw, SIGNAL(mySignal()), SLOT(mySlot()));
  7. }
  8. ...
To copy to clipboard, switch view to plain text mode