diff --git a/src/qt/window.cpp b/src/qt/window.cpp index c4011e0ce1..0ca75db5a3 100644 --- a/src/qt/window.cpp +++ b/src/qt/window.cpp @@ -367,6 +367,11 @@ void wxWindowQt::PostCreation(bool generic) GetHandle()->setFont( wxWindowBase::GetFont().GetHandle() ); + // The window might have been hidden before Create() and it needs to remain + // hidden in this case, so do it (unfortunately there doesn't seem to be + // any way to create the window initially hidden with Qt). + GetHandle()->setVisible(m_isShown); + wxWindowCreateEvent event(this); HandleWindowEvent(event); }