diff --git a/src/qt/frame.cpp b/src/qt/frame.cpp index 34572ba3df..fd23be2c56 100644 --- a/src/qt/frame.cpp +++ b/src/qt/frame.cpp @@ -178,6 +178,15 @@ void wxFrame::DoGetClientSize(int *width, int *height) const sb->GetSize(NULL, &sbh); *height -= sbh; } + + + // also for menubar , we must subtract it's height here + QMenuBar *qmb = GetQMainWindow()->menuBar(); + if (height && qmb) + { + QRect geometry = qmb->geometry(); + *height -= geometry.height(); + } } QMainWindow *wxFrame::GetQMainWindow() const