> Sent: Friday, January 18, 2019 at 4:06 AM
> From: "Alexander Dyagilev" <alervd...@gmail.com>
> To: "interest@qt-project.org Interest" <interest@qt-project.org>
> Subject: [Interest] Destroy all queued events on QObject::disconnect?
>
> Hello again,
> 
> The previous problem I recently wrote about was caused by me thinking 
> that QObject::disconnect also destroys all queued events caused by this 
> connection. This was obviously wrong.
> 
> But, I still want Qt to behave so. Is there a way to achieve such behavior?

I don't see why when you disconnect you can't also set a flag bool 
ignoreFutureEvents=true and in your slots check it. I would be hesitant to mess 
with the QEventLoop, but you might be able to also use an eventFilter() on the 
object.

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to