title: Make a QDialog appear in a different screen
body: <p>The title says it pretty much all:</p>
  
  <p>I have two screens, and each time I create a <code>QDialog</code> it appears in the same screen as its parent.
  How can I make it appear in a different screen? Or should I use a different type of top-level widget?</p>
  
  <p>The code I use to create the dialog is:</p>
  
  <pre><code>QDialog my_dialog = new QDialog(this,
                                  Qt::WindowMaximizeButtonHint |
                                  Qt::WindowCloseButtonHint);
  </code></pre>
  
  <p>...</p>
  
  <p><strong>EDIT:</strong>
  I have also tried using the <a href="http://doc.qt.io/qt-5/qdesktopwidget.html" rel="nofollow">QDesktopWidget</a> which gives me a <code>QScreen</code> object that refers to the second screen. But then I don't find how to instruct the <code>QDialog</code> to use that <code>QScreen</code> (setting it as the parent doesn't work).</p>