title: QT layout in layout shrinks automatically
body: <p>I am using Qt Designer to create a main window and I have the following result:</p>
  <p><a href="https://i.stack.imgur.com/WP2lB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WP2lB.png" alt="enter image description here" /></a></p>
  <p>The above opened with PyQt6 using the following code:</p>
  <pre><code>from PyQt6.QtWidgets import QApplication, QMainWindow
  from PyQt6 import uic
  import sys
  
  
  class UI(QMainWindow):
      def __init__(self):
          super().__init__()
  
          uic.loadUi(&quot;form.ui&quot;, self)
  
  
  if __name__ == &quot;__main__&quot;:
      app = QApplication(sys.argv)
      window = UI()
      window.show()
      sys.exit(app.exec())
  </code></pre>
  <p>However, in the Qt designer the actual form looks sth like this:</p>
  <p><a href="https://i.stack.imgur.com/DciYa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DciYa.png" alt="enter image description here" /></a></p>
  <p>As you can notice the x, y and z text and line edits look weird and dimensionally different from the Qt Designer.</p>
  <p>There I have a layout in layout and for some reason the the inner layout shrinks. Is it actually possible to fix the error in Qt Designer without modifying the code?</p>
  <p>Thank you for your attention!</p>
  <p>Edit 1:</p>
  <p>Outer layout Property - Value pairs:</p>
  <p><a href="https://i.stack.imgur.com/88evY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/88evY.png" alt="enter image description here" /></a></p>
  <p>Inner layout Property - Value pairs:</p>
  <p><a href="https://i.stack.imgur.com/bOMZX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bOMZX.png" alt="enter image description here" /></a></p>