Emulating Multiple Screens

To ease development of applications that utilize multiple screens, the emulator supports emulating devices with multiple screens.

To launch a UI with multiple screens, open the Model view and select multimaster2000 in the Device field (1).

Implementing Multiple Screen Support

Applications can use one or more screens at the same time. For every screen, your application has to create a separate QQuickView. The following code snippet demonstrates how you can add many QQuickView views to QQuiApplication:

for (auto screen : QGuiApplication::screens()) {
auto quickView = new QQuickView();
quickView->setScreen(screen);
quickView->setSource(QUrl("<file.qml>"));
quickView->showFullScreen();
}

© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.