title: How do I set a relative position for a Qt widget?
body: <p>I've been searching around and reading docs about moving widgets around, but I'm still looking for a good example.</p>
  
  <p>I have a widget that I display with a hotkey, and I'd like it to popup somewhere else in the MainWindow rather than the center. If I use move(), then the widget remains in that position regardless if it's parent window changes position. I'd like the widget to be placed in a location inside of the parent widget so that when moving the parent widget, it stays in the relative position. How can I go about doing this?</p>
  
  <p>I read about MapToParent, but I'm not sure how to use this. I tried:</p>
  
  <pre><code>QPoint fD_p = fDialog-&gt;pos();
  QPoint parent_fD_p = QWidget::mapToParent(fD_p);
  fDialog-&gt;move(parent_fD_p);
  </code></pre>