They are added to Application in tabDialog.h (...)
Why are you creating your objects in a header ? And where exactly is the code called ? Is it inline constructor ?
About connection : connect tabs once after adding them to widget:
tabWidget->addTab(Tab1,"Tab1");
tabWidget->addTab(Tab2,"Tab2");
connect( Tab1, SIGNAL(returnPressed()), Tab2, SLOT(publicSlotFromTab2()) );
layout->addWidget(tabWidget);
setLayout(layout);
tabWidget->addTab(Tab1,"Tab1");
tabWidget->addTab(Tab2,"Tab2");
connect( Tab1, SIGNAL(returnPressed()), Tab2, SLOT(publicSlotFromTab2()) );
QVBoxLayout *layout = new QVBoxLayout;
layout->addWidget(tabWidget);
setLayout(layout);
To copy to clipboard, switch view to plain text mode
Bookmarks