title: qdockwidget not below qmenubar
body: <p>I'm using this Qt binding for Go <a href="https://github.com/therecipe/qt" rel="nofollow noreferrer">https://github.com/therecipe/qt</a>, but have some issues combining <code>QDockWidget</code> with <code>QMenuWidget</code>. </p>
  
  <p>I've created the main window with the QT creator that spits out a <code>mainwindow.ui</code> file (see below).</p>
  
  <p>Now I'd like to dynamically add docking widgets to the window, however, when doing so the left docker is on the same level as the menu bar, meaning it moves the menu bar to the right. 
  I would like to have the docker below the static bar.</p>
  
  <p><a href="https://i.stack.imgur.com/IN7xD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IN7xD.png" alt="enter image description here"></a></p>
  
  <p>In the image the "Left Dock Widget" should be below the menu bar</p>
  
  <p>Below is the relevant code for setting everything up:</p>
  
  <p>ui.go </p>
  
  <pre><code>func LoadFormToWidget(fileName string) *widgets.QWidget {
      file := utils.OpenQFile(fileName)
      widget := uitools.NewQUiLoader(nil).Load(file, nil)
      file.Close()
  
      return widget
  }
  </code></pre>
  
  <p>base.go</p>
  
  <pre><code>func SetupUI() {
      mainWindowWidget := ui.LoadFormToWidget("src/ui/mainwindow.ui")
  
      mainWindow := widgets.NewQMainWindow(nil, 0)
      mainWindow.SetCentralWidget(mainWindowWidget)
  
      createDocker(mainWindow)
      setupDockingCorners(mainWindow)
  
      mainWindow.ShowMaximized()
  }
  
  func createDocker(mainWindow *widgets.QMainWindow) {
      leftDocker := createLeftDocker()
      mainWindow.AddDockWidget(core.Qt__LeftDockWidgetArea, leftDocker)
  }
  
  func createLeftDocker() *widgets.QDockWidget {
      leftDockWidget := widgets.NewQDockWidget("Left Dock Widget", nil, 0)
      leftDockWidget.SetAllowedAreas(core.Qt__LeftDockWidgetArea)
      leftDockWidget.SetFloating(true)
      leftDockWidget.SetWidget(widgets.NewQPushButton2("PushButton", nil))
      return leftDockWidget
  }
  </code></pre>
  
  <p>mainwindow.ui</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;ui version="4.0"&gt;
   &lt;class&gt;MainWindow&lt;/class&gt;
   &lt;widget class="QMainWindow" name="MainWindow"&gt;
    &lt;property name="geometry"&gt;
     &lt;rect&gt;
      &lt;x&gt;0&lt;/x&gt;
      &lt;y&gt;0&lt;/y&gt;
      &lt;width&gt;1025&lt;/width&gt;
      &lt;height&gt;596&lt;/height&gt;
     &lt;/rect&gt;
    &lt;/property&gt;
    &lt;property name="sizePolicy"&gt;
     &lt;sizepolicy hsizetype="Expanding" vsizetype="Expanding"&gt;
      &lt;horstretch&gt;0&lt;/horstretch&gt;
      &lt;verstretch&gt;0&lt;/verstretch&gt;
     &lt;/sizepolicy&gt;
    &lt;/property&gt;
    &lt;property name="windowTitle"&gt;
     &lt;string&gt;MainWindow&lt;/string&gt;
    &lt;/property&gt;
    &lt;property name="autoFillBackground"&gt;
     &lt;bool&gt;false&lt;/bool&gt;
    &lt;/property&gt;
    &lt;property name="documentMode"&gt;
     &lt;bool&gt;true&lt;/bool&gt;
    &lt;/property&gt;
    &lt;property name="dockNestingEnabled"&gt;
     &lt;bool&gt;true&lt;/bool&gt;
    &lt;/property&gt;
    &lt;widget class="QWidget" name="centralwidget"/&gt;
    &lt;widget class="QMenuBar" name="menubar"&gt;
     &lt;property name="geometry"&gt;
      &lt;rect&gt;
       &lt;x&gt;0&lt;/x&gt;
       &lt;y&gt;0&lt;/y&gt;
       &lt;width&gt;1025&lt;/width&gt;
       &lt;height&gt;23&lt;/height&gt;
      &lt;/rect&gt;
     &lt;/property&gt;
     &lt;property name="sizePolicy"&gt;
      &lt;sizepolicy hsizetype="MinimumExpanding" vsizetype="Expanding"&gt;
       &lt;horstretch&gt;0&lt;/horstretch&gt;
       &lt;verstretch&gt;0&lt;/verstretch&gt;
      &lt;/sizepolicy&gt;
     &lt;/property&gt;
     &lt;widget class="QMenu" name="menuFile"&gt;
      &lt;property name="title"&gt;
       &lt;string&gt;File&lt;/string&gt;
      &lt;/property&gt;
      &lt;addaction name="actionSettings"/&gt;
      &lt;addaction name="separator"/&gt;
      &lt;addaction name="actionQuit"/&gt;
     &lt;/widget&gt;
     &lt;addaction name="menuFile"/&gt;
    &lt;/widget&gt;
    &lt;widget class="QStatusBar" name="statusbar"/&gt;
    &lt;action name="actionSettings"&gt;
     &lt;property name="text"&gt;
      &lt;string&gt;Settings&lt;/string&gt;
     &lt;/property&gt;
    &lt;/action&gt;
    &lt;action name="actionQuit"&gt;
     &lt;property name="text"&gt;
      &lt;string&gt;Quit&lt;/string&gt;
     &lt;/property&gt;
    &lt;/action&gt;
   &lt;/widget&gt;
   &lt;resources/&gt;
   &lt;connections/&gt;
  &lt;/ui&gt;
  </code></pre>