diff --git a/share/qtcreator/qml/qmlpuppet/qml2puppet/Info.plist b/share/qtcreator/qml/qmlpuppet/qml2puppet/Info.plist
index c15f81acad9..f8d63231ea7 100644
--- a/share/qtcreator/qml/qmlpuppet/qml2puppet/Info.plist
+++ b/share/qtcreator/qml/qmlpuppet/qml2puppet/Info.plist
@@ -28,5 +28,7 @@ be met: https://www.gnu.org/licenses/gpl-3.0.html.
qml2puppet
CFBundleIdentifier
org.qt-project.qtcreator.qml2puppet
+ LSUIElement
+ 1
diff --git a/share/qtcreator/qml/qmlpuppet/qml2puppet/qml2puppetmain.cpp b/share/qtcreator/qml/qmlpuppet/qml2puppet/qml2puppetmain.cpp
index 10b8487d50b..70f403512fa 100644
--- a/share/qtcreator/qml/qmlpuppet/qml2puppet/qml2puppetmain.cpp
+++ b/share/qtcreator/qml/qmlpuppet/qml2puppet/qml2puppetmain.cpp
@@ -133,19 +133,7 @@ int main(int argc, char *argv[])
// subpixel antialiasing and instead use gray.
qputenv("QSG_DISTANCEFIELD_ANTIALIASING", "gray");
#ifdef Q_OS_MACOS
- if (!qEnvironmentVariableIsSet("QMLDESIGNER_QUICK3D_MODE")) {
- qputenv("QT_MAC_DISABLE_FOREGROUND_APPLICATION_TRANSFORM", "true");
- } else {
- // We have to parse the arguments before Q[Gui]Application creation
- // Since the Qt arguments are not filtered out, yet we do not know the position of the argument
- for (int i = 0; i < argc; ++i) {
- const char *arg = argv[i];
- //In previewmode and rendermode we hide the process
- if (!qstrcmp(arg, "previewmode") || !qstrcmp(arg, "rendermode"))
- qputenv("QT_MAC_DISABLE_FOREGROUND_APPLICATION_TRANSFORM", "true");
- // This keeps qml2puppet from stealing focus
- }
- }
+ qputenv("QT_MAC_DISABLE_FOREGROUND_APPLICATION_TRANSFORM", "true");
#endif
//If a style different from Desktop is set we have to use QGuiApplication