Thanks for the tips.
I have tried this several times, but the still not work in my program. I'm wondereing about how to implement it.
My main call a StartProgram(QWidget). No GUI started.
StartProgram call a TabDialog(QTabDialog). This tabdialog starts a tabWidget(QTabWidget) in this way:
StartPageTab startpagetab = new StartPageTab();
FindPageTab findpagetab = new FindPageTab();
tabWidget->addTab(startpagetab, tr("StartPage");
tabWidget->findpagetab, tr("FindPage");
tabWidget->show();
QTabWidget tabWidget = new QTabWidget;
StartPageTab startpagetab = new StartPageTab();
FindPageTab findpagetab = new FindPageTab();
tabWidget->addTab(startpagetab, tr("StartPage");
tabWidget->findpagetab, tr("FindPage");
tabWidget->show();
To copy to clipboard, switch view to plain text mode
In which class should I implement the closeEvent?
I have tried in the TabDialog, and in the findpagetab and startpagetab.
Can you please help me?
Bookmarks