From 84924f5ef238b6657276592a87a7f0d5fe56c335 Mon Sep 17 00:00:00 2001 From: "Addisu Z. Taddese" Date: Tue, 11 Apr 2023 15:02:28 -0500 Subject: [PATCH] Disable deprecation messages about onFoo connections Signed-off-by: Addisu Z. Taddese --- src/Application.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Application.cc b/src/Application.cc index 5cd89681b..c8be73202 100644 --- a/src/Application.cc +++ b/src/Application.cc @@ -99,6 +99,12 @@ Application::Application(int &_argc, char **_argv, const WindowType _type) this->setOrganizationDomain("gazebosim.org"); this->setApplicationName("Gazebo GUI"); + // Disable deprecation messages about onFoo connections since the new way of + // definining connections is only available as of Qt 5.12, which is not + // available in Ubuntu Focal + // TODO(azeey) Remove once Qt 5.12 is available in all supported platforms. + QLoggingCategory::setFilterRules("qt.qml.connections=false"); + #if __APPLE__ // Use the Metal graphics API on macOS. gzdbg << "Qt using Metal graphics interface" << std::endl;