[Qt-interest] Destroyed signal of QWidget is not emitted
elizabeta petreska
elizabeta.petreska at gmail.com
Thu Oct 15 12:03:12 CEST 2009
Ok, this is not completly true.
My widget is QDialog.
In the ctr of my dialog I am doing this :
connect(this,SIGNAL(destroyed()),this,SLOT(someslot()));
Only when the signal is connected with slot of the same dialog, the
destroyed signal is not emitted.
If I write the following :
connect(this,SIGNAL(destroyed()),otherDlgPtr,SLOT(otherDlgSlot()));
the destroyed signal is emitted.
why
On Thu, Oct 15, 2009 at 11:30 AM, elizabeta petreska <
elizabeta.petreska at gmail.com> wrote:
>
> Hello
>
> I connected my widget destroyed signal with some slot function. And my slot
> function is never called. The connection between the signal and the slot
> itself is ok, i.e connect returns true. Then I discovered that the destroyed
> signal is not emitted when QWidget is destroyed, that is the Qwidget dtr is
> called but the destroyed signal is not emitted. Is this by design ? Thanks
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091015/f218761d/attachment.html
More information about the Qt-interest-old
mailing list