c++ - Qt: deleteLater deletes object only on application close -
i have mainwindow creates, in 1 of slots, other widget, let's call a
. @ point later on other slot, widget should deleted, call a->deletelater()
;
but noticed destructor called when application close.
what can produce such behaviour? why deletelater
delayed?
i'm using qt 4.8.6. happens in main thread, , main event loop running.
Comments
Post a Comment