[Qt-creator] Closing non-modal dialog
goran.kostadinov at nokia.com
goran.kostadinov at nokia.com
Mon Apr 19 20:19:30 CEST 2010
Hi,
A short question about proper way of shutdown-ing a plug-in.
In situation when, from QtCreator plugin named ScreenShotToolPlugin, non-modal dialog is opened, when QTCreator is closed, shutdown function from respective plugin is not called until the moment the non-modal dialog is explicitly closed. Is there any way for plugin to get notification about close event of QtCreator or some other way to close non-modal dialog created from plugin when QTCreator is closed?
class MainDlg;
class ScreenShotToolPlugin : public ExtensionSystem::IPlugin
{
Q_OBJECT
public:
void shutdown();
private:
MainDlg * dlg;
private slots:
void openDialog()
{
dlg = new MainDlg();
dlg->show();
}
};
Best Regards,
Goran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20100419/67ff1efe/attachment.html
More information about the Qt-creator-old
mailing list