From 47a3a92a0eb0e4e3b6de017001d094257205ba4b Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Tue, 20 Jun 2023 00:22:54 +0300 Subject: [PATCH] fix: Qt 6.5 deprecation warning (#5552) --- qt/MainWindow.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qt/MainWindow.cc b/qt/MainWindow.cc index 4919df0c7..f7c66d4ec 100644 --- a/qt/MainWindow.cc +++ b/qt/MainWindow.cc @@ -1110,7 +1110,11 @@ void MainWindow::toggleWindows(bool do_show) } raise(); +#if QT_VERSION >= QT_VERSION_CHECK(6, 4, 0) + this->activateWindow(); +#else QApplication::setActiveWindow(this); +#endif } }