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
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to