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

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -