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?


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

Reply via email to