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
This commit is contained in:
Mariano Reingart
2014-09-29 03:58:40 +00:00
parent 93732aba36
commit fdc2433ede

View File

@@ -831,6 +831,13 @@ void wxWindowQt::DoSetSize(int x, int y, int width, int height, int sizeFlags )
height = h; height = h;
DoMoveWindow( x, y, width, height ); 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();
} }