how to create connections for dynamic widgets in qt
Printable View
how to create connections for dynamic widgets in qt
what do you mean? this?
Code:
... void MyWidget::showNewWidget() { MyAnotherWidget *maw = new MyAnotherWidget(this); maw->setAttribute(Qt::WA_DeleteOnClose); connect(maw, SIGNAL(mySignal()), SLOT(mySlot())); } ...