title: Why are my PyQt Widgets overlapping?
body: <pre><code>def __init__(self,parent=None):
      QMainWindow.__init__(self,parent)
      self.setWindowTitle("test")
  
      self.createActions()
  
      self.mainWidget=QWidget(self)
      self.mainLayout = QHBoxLayout(self.mainWidget)
  
      self.createListView()
      self.lv.setMinimumSize(200,200)
  
      self.textEdit = QTextEdit()
      self.textEdit.setMinimumSize(200,200)
  
      self.mainLayout.addWidget(self.lv)
      self.mainLayout.addWidget(self.textEdit)
  </code></pre>
  
  <p>All this does is creates a window with a toolbar and puts two widgets inside a QHBoxLayout, a QListView and a QTextEdit. Yet for some reason all three things appear to overlap. (Toolbar visible underneath the widgets)</p>
  
  <p><img src="https://i.stack.imgur.com/rqW2B.png" alt="output"></p>