bossy
30th October 2013, 23:57
Hi,
I have a scene to which i add a custom widget(mainly a dialog), in my custom widget i have reimplemented closeEvent(QCloseEvent *) to perform specific action when the custom widget is closed, however the closeEvent is not triggered when the custom widget is added to the scene, works fine otherwise, how can i work around this or use a signal when items are removed
thanks
mydialog = new DialogWindow;
scene->addWidget(mydialog,Qt::Dialog);
I have a scene to which i add a custom widget(mainly a dialog), in my custom widget i have reimplemented closeEvent(QCloseEvent *) to perform specific action when the custom widget is closed, however the closeEvent is not triggered when the custom widget is added to the scene, works fine otherwise, how can i work around this or use a signal when items are removed
thanks
mydialog = new DialogWindow;
scene->addWidget(mydialog,Qt::Dialog);