title: PyQt5 - Position a widget at top right corner of a QTextEdit
body: <p>I'm developping a text editor with pyqt5 and I want to implement a Find Box which  sticks to the top right corner of my textarea just like this:</p>
  
  <p>image</p>
  
  <p><img src="https://i.stack.imgur.com/UGhE0.png" alt=""></p>
  
  <pre><code>textarea = QTextEdit()
  layout = QHBoxLayout() # tried hbox, vbox and grid
  find_box = QLineEdit()
  empty = QTabWidget()
  layout.addWidget(empty)
  layout.addWidget(empty)
  layout.addWidget(find_box)
  textarea.setLayout(layout)
  </code></pre>
  
  <p>So with this code, I managed to have my Find Box stick to the left of my texarea, even when window gets resized. But somehow the y position of my textarea's layout starts from the middle:</p>
  
  <p>image</p>
  
  <p><img src="https://i.stack.imgur.com/6OKtI.png" alt=""></p>
  
  <p>An awful solution is to set the textarea as my Find Box parent, use move(x, y) to set the Find Box's position but I'll have to catch whenever my window or my textarea get resized and use move() again to set a new position.</p>
  
  <p>So why my QTextEdit's layout starts from the middle? And is there anyway to avoid this?</p>