[Interest] QEvent::Quit vs. QEvent::Close
Alexander Dyagilev
alervdvcw at gmail.com
Mon Oct 23 21:10:17 CEST 2023
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.
On 10/23/2023 10:05 PM, Alexander Dyagilev wrote:
> Hello,
>
> In Qt 5.x we had QEvent::Close when the user was using Dock to quit
> our application.
>
> Now, this is not the case and QEvent::Quit is used instead.
>
> However, the same QEvent::Quit is used when my code calls qApp->quit
> somewhere.
>
> Is it possible to distinguish these two situations?
>
>
More information about the Interest
mailing list