[Qt-interest] Application crashing after deleting
Martin Hofius
Martin at hofius-online.com
Sat Sep 26 22:10:07 CEST 2009
Am Samstag, 26. September 2009 schrieb Andreas Unger:
> Hi all,
>
> I have a bunch of items on a QGraphicsView. Most of these items have
> buttons on them. In the slots corresponding to the various buttons, I call
> a method in a separate manager class which deletes some of the widgets on
> the main window. However, for some reason, I cannot delete the widget
> containing the button that was last clicked. Why is this case? How can I
> make sure that this widget is deleted as well?
hmm, you want to delete a widget that called the current slot? As far as I
know slots are used as direct function calls - so I can't imagine that
deleting this widget in the slot can be safe...
Greetings
Martin
>
> Cheers,
> Andreas
More information about the Qt-interest-old
mailing list