The title says it pretty much all:
I have two screens, and each time I create a QDialog
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?
The code I use to create the dialog is:
QDialog my_dialog = new QDialog(this,
Qt::WindowMaximizeButtonHint |
Qt::WindowCloseButtonHint);
...
EDIT:
I have also tried using the QDesktopWidget which gives me a QScreen
object that refers to the second screen. But then I don't find how to instruct the QDialog
to use that QScreen
(setting it as the parent doesn't work).