PDA

View Full Version : dynamic widgets



sonu111
13th December 2008, 10:32
how to create connections for dynamic widgets in qt

spirit
13th December 2008, 12:59
what do you mean? this?


...
void MyWidget::showNewWidget()
{
MyAnotherWidget *maw = new MyAnotherWidget(this);
maw->setAttribute(Qt::WA_DeleteOnClose);
connect(maw, SIGNAL(mySignal()), SLOT(mySlot()));
}
...