title: PyQt5 Layouts not moving button
body: <p>while working with PyQt5 i tried to put buttons on a Layout, but it dont seem to workfor some reason? The button simply doesent move vertically, to the other side :D</p>
  <p>Heres the code:</p>
  <pre><code>from PyQt5 import Qt, QtCore, QtWidgets, QtGui
  import sys
  
  
  class Window(Qt.QMainWindow):
      def __init__(self):
          super().__init__()
          self.setWindowTitle(&quot;WebScraper&quot;)  # setting title
          self.setGeometry(300, 300, 600, 400)   # setting geometry
  
          self.UiComponents()  # calling method
          self.show()  # showing all the widgets
  
  
  
      def UiComponents(self):
  
          self.SearchButton = Qt.QPushButton(&quot;Search&quot;, self)
          self.SearchButton.resize(150, 80)
  
          self.VBox = Qt.QVBoxLayout()
          self.VBox.addStretch()
          self.VBox.addWidget(self.SearchButton)
          self.setLayout(self.VBox)
  
          self.showMaximized()  # Showing window as maximized.
  
  
  App = Qt.QApplication(sys.argv)
  
  
  window = Window()
  sys.exit(App.exec())
  </code></pre>