[Interest] QEvent::Quit vs. QEvent::Close

Hamish Moffatt hamish at risingsoftware.com
Mon Oct 23 22:30:54 CEST 2023


On 24/10/23 06:10, Alexander Dyagilev wrote:
> I would prefer for an additional event to be used when the user 
> triggers Quit. E.g. something like QEvent::QuitByUser.
>
> For now, it seems I will have to involve some additional ugly logics 
> (something like setting a global variable).... More code more 
> complexity for such a simple situation. Not good, IMO. 


Does QEvent::spontaneous() tell you anything about the two different 
quit events?

Hamish



More information about the Interest mailing list