i have 2-monitor setup , when spawn qinputdialog spawns in left monitor, ie 1 dont use much. there way indicate appear in monitor have focus without incurring in (x,y) positioning stuff.
basically dont care appears long monitor focus.
you can use qdesktopwidget (http://doc.qt.io/qt-5/qdesktopwidget.html) find out screen mainwindow being displayed on. going screen "the focus", assume.
you use screen number find out geometry of screen , place place qinputdialog in screen's center - either before dialog shown or right afterwards.
i'm afraid solution using "(x,y) positioning stuff", if find way place dialog without it, let me know.
Comments
Post a Comment