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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user