From 3b5b301e98c37a1124561090fefc8230d38486d2 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 17 Sep 2020 21:44:50 +0100 Subject: [PATCH] Launcher: Disable Qt 5.15 QML warnings --- src/GUI/QtLauncher.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/GUI/QtLauncher.cxx b/src/GUI/QtLauncher.cxx index 572ca5c74..672e94442 100644 --- a/src/GUI/QtLauncher.cxx +++ b/src/GUI/QtLauncher.cxx @@ -252,6 +252,11 @@ void initApp(int& argc, char** argv, bool doInitQSettings) if (!qtInitDone) { qtInitDone = true; + // Disable Qt 5.15 warnings about obsolete Connections/onFoo: syntax + // we cannot use the new syntax + // as long as we have to support Qt 5.9 + qputenv("QT_LOGGING_RULES", "qt.qml.connections.warning=false"); + initQtResources(); // can't be called from a namespace s_argc = argc; // QApplication only stores a reference to argc,