From 93732aba36d595c647437c35380c90b9df4cad31 Mon Sep 17 00:00:00 2001 From: Mariano Reingart Date: Mon, 29 Sep 2014 03:56:33 +0000 Subject: [PATCH] Enable mouse tracking in wxQT, thanks @seandepagnier This is needed so qt mouse events are triggered without a button pressed. Note that I modified this to prevent a crash if m_qtWindow was null (reproducible with controls sample and the original patch from Sean) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/qt/window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qt/window.cpp b/src/qt/window.cpp index 920dc70523..5dec16db62 100644 --- a/src/qt/window.cpp +++ b/src/qt/window.cpp @@ -220,6 +220,8 @@ bool wxWindowQt::Create( wxWindowQt * parent, wxWindowID id, const wxPoint & pos { m_qtWindow = new wxQtWidget( parent, this ); } + + GetHandle()->setMouseTracking(true); } if ( !wxWindowBase::CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))