[Interest] QEvent::Quit vs. QEvent::Close
Alexander Dyagilev
alervdvcw at gmail.com
Tue Oct 24 20:30:06 CEST 2023
Hello,
No, it returns true always.
On 10/23/2023 11:30 PM, Hamish Moffatt via Interest wrote:
> 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
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
More information about the Interest
mailing list