title: How to align the layouts QHBoxLayout and QVBoxLayout?
body: <p>I want to do this layout for my window:</p>
  
  <p><a href="https://i.stack.imgur.com/LT5am.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LT5am.png" alt="enter image description here"></a></p>
  
  <p>So I tried to create a <code>QHBoxLayout</code> layout to put the 3 buttons, and add it to the <code>QVBoxLayout</code>:</p>
  
  <pre><code>#!/usr/bin/python
  # -*- coding: utf-8 -*-
  
  import sys
  from PyQt4 import QtGui
  
  class Example(QtGui.QWidget):
  
      def __init__(self):
          super(Example, self).__init__()
          self.initUI()
  
      def initUI(self):
  
          title = QtGui.QLabel( 'Title' )
          author = QtGui.QLabel( 'Author' )
          other = QtGui.QLabel( 'Other' )
  
          titleEdit = QtGui.QLineEdit()
  
          horizontalLayout = QtGui.QHBoxLayout( self )
          horizontalLayout.addWidget( title )
          horizontalLayout.addWidget( author )
          horizontalLayout.addWidget( other )
  
          verticalLayout = QtGui.QVBoxLayout( self )
          verticalLayout.addWidget( titleEdit )
          verticalLayout.addWidget( horizontalLayout )
  
          self.setLayout( verticalLayout )
  
          self.setGeometry( 300, 300, 350, 300 )
          self.setWindowTitle( 'Review' )
          self.show()
  
  def main():
  
      app = QtGui.QApplication( sys.argv )
      ex = Example()
      sys.exit( app.exec_() )
  
  
  if __name__ == '__main__':
      main()
  </code></pre>
  
  <p>But it is not accepting another layout:</p>
  
  <pre><code>verticalLayout.addWidget( horizontalLayout )
  TypeError: addWidget(self, QWidget, stretch: int = 0, alignment: Qt.Alignment = 0): argument 1 has unexpected type 'QHBoxLayout'
  </code></pre>
  
  <p>How to do this this alignment?</p>
  
  <hr>
  
  <h1>Update</h1>
  
  <p>By @<a href="https://stackoverflow.com/users/6371123/">G.M.</a> comment, using <code>addLayout()</code> I got this warning on the console:</p>
  
  <pre><code>QLayout: Attempting to add QLayout "" to Example "", which already has a layout
  QLayout::addChildLayout: layout "" already has a parent
  QWidget::setLayout: Attempting to set QLayout "" on Example "", which already has a layout
  </code></pre>
  
  <p>But now the window was displayed without the edit box:</p>
  
  <p><a href="https://i.stack.imgur.com/8I8F1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8I8F1.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/U8O3G.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U8O3G.gif" alt="enter image description here"></a></p>