PDA

View Full Version : Two monitors, two forms



Victor007
18th July 2013, 20:36
Hello, everybody!
I built program with 2 widgets (two forms), the second form is linked to button click on the first, i.e. I pressed the button on 1st widget and 2nd widget is created. But I need some special thing: I need to open 2nd widget on the second monitor of the computer. Is the a standart solution for that task?

ChrisW67
18th July 2013, 23:43
Take a look at QDesktopWidget. I've never tried it, but I imagine you can look up the available geometry of the "other" screen and QWidget::move()/QWidget::resize() your new widget to place and fit it.