It would be better if the Qt application using Qt would not need to write platform specific code, like intercepting WM_APPCOMMAND or using DefWindowProc.
So, I wonder if we can either: 1. Change the default behaviour to pass the event to the application and if it is not handled by the application, only then pass it to the operating system. 2. We can add an application attribute to opt into this behaviour by the Qt application without having to write platform specific code. This way, existing applications relying on the current behaviour could be kept working. 3. Add an environment variable (I do not prefer this, but this is an option). 4. Something else. What would be your feedback on this?
_______________________________________________ Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development