[Qt-interest] crash during QObject::connect
MARTIN Pierre
hickscorp at gmail.com
Fri Sep 9 16:47:58 CEST 2011
> QObject::connect(controller, SIGNAL(onModelChanged(MyModel*)), this, SLOT(onModelChanged(MyModel*)),Qt::UniqueConnection);
Why are you specifying Qt::UniqueConnection as your flags?
Also, passing pointers with the signals / slots mechanisms has to be done with caution... In your receiving object, are you sure the MyModel pointer is still valid when the slot gets called?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110909/93a7e93f/attachment.html
More information about the Qt-interest-old
mailing list