Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.4.2, 5.5.1, 5.6.0 Beta
-
Windows 7 msvc_2013
Description
QWindow::SetScreen() does not have any effect if tried to move widget screen to other.
QLabel* widget = new QLabel(); widget->show(); widget->windowHandle()->setScreen(screen); widget->setText("This should be shown in the screen " + screen->name()); widget->resize(300,50); widget->show();
workaround is to get screen geometry and move widget to that area
QRect screenres = QApplication::desktop()->screenGeometry(item->text().toInt()); widget->move(QPoint(screenres.center().x() - widget->width()/2, screenres.center().y() - widget->height()/2));
Attachments
Issue Links
- relates to
-
QTBUG-33138 should QWindow.setScreen() always work?
-
- Closed
-