Re: [Interest] Reasons why deleteLater() might not work

2022-04-03 Thread Michael Jackson
So buried deep in the code base (which was being reused from another project) was an event filter that was specifically looking for deleteLater() and then swallowing it up. I need to figure out why in the other project we were doing that. I knew it was "user error", just needed some help getting

Re: [Interest] Reasons why deleteLater() might not work

2022-04-03 Thread Nikos Chantziaras
On 01/04/2022 16:17, Michael Jackson wrote: I have a bit of code where in I am removing a QWidget from the UI and it needs to be truly cleaned up as its parent QObject is also being cleaned up. I thought I did the appropriate: layout->removeWidget(widget); widget->setParent(nullptr); widget->