PDA

View Full Version : [Mac OS] Resize window for two monitors



ecspertiza
28th January 2015, 13:08
Hi all. I have problem with mac os and resize windows for tow monitors.

I try call



QQuickView::showFullscreen();


but QQuickView resize on primary desktop.

ok, i try call




void Window::show()
{

QRect screenRect;
QList<QScreen *> screenList = QGuiApplication::screens();

for (int i = 0 ; i < screenList.count(); ++i) {
screenRect = screenRect.united(screenList.at(i).geometry());
}

setGeometry(screenRect);
QQuickView::show();
}



i see half window on primary screen, and all, tow half not visible.

How i can resize window for tow monitors ?

Mac OS 10.10
Qt 5.3.2