From fdc2433ede5e54cb5c6a5e5570ea33e507279f27 Mon Sep 17 00:00:00 2001 From: Mariano Reingart Date: Mon, 29 Sep 2014 03:58:40 +0000 Subject: [PATCH] Fix case where widgets may get hidden by qt, thanks @seandpagnier git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/qt/window.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/qt/window.cpp b/src/qt/window.cpp index 5dec16db62..942613eeb7 100644 --- a/src/qt/window.cpp +++ b/src/qt/window.cpp @@ -831,6 +831,13 @@ void wxWindowQt::DoSetSize(int x, int y, int width, int height, int sizeFlags ) height = h; DoMoveWindow( x, y, width, height ); + + // An annoying feature of Qt + // if a control is created with size of zero, it is set as hidden by qt + // if it is then resized, in some cases it remains hidden, so it + // needs to be shown here + if (!m_qtWindow->isVisible() && IsShown()) + m_qtWindow->show(); }