From 088d698c084e12a2cc732f48111f825cb5aa8529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C4=83t=C4=83lin=20R=C4=83ceanu?= Date: Fri, 22 Feb 2019 22:02:05 +0200 Subject: [PATCH] Don't give focus to a frame when clicking outside a focused child Closes https://github.com/wxWidgets/wxWidgets/pull/1238 --- src/qt/frame.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qt/frame.cpp b/src/qt/frame.cpp index ab28200174..2492927aff 100644 --- a/src/qt/frame.cpp +++ b/src/qt/frame.cpp @@ -242,4 +242,5 @@ wxQtMainWindow::wxQtMainWindow( wxWindow *parent, wxFrame *handler ) wxQtCentralWidget::wxQtCentralWidget( wxWindow *parent, wxFrame *handler ) : wxQtEventSignalHandler< QScrollArea, wxFrame >( parent, handler ) { + setFocusPolicy(Qt::NoFocus); }