When a Mac GUI application has LSUIElement in its Info.plist set to 1, it is nevertheless activated and brought into foreground of all other applications.
The code in qcocointegration does two things:
- call qt_mac_transformProccessToForegroundApplication. This correctly only transforms to foreground application if LSUIElement is not != 0
- call [cocoaApplication activateIgnoringOtherApps : YES]. This is done unconditionally, but it should only be done if the application actually wants to be a foreground application, similar to the qt_mac_transform...... call above