I am trying to create Qt application rendering to two displays. QNX is already configured, for 2 displays. We created two windows, but how do we tell Qt to render a window to the second display?
Here is my code snippet
QGuiApplication app(argc, argv);
QtQuick2ApplicationViewer viewer1;
QtQuick2ApplicationViewer viewer2;
init();
viewer1.setMainQmlFile(QStringLiteral("qml/VisionBuck/main.qml"));
viewer1.showExpanded();
viewer2.setMainQmlFile(QStringLiteral("qml/VisionBuck/display2.qml"));
viewer2.showExpanded();
In output I can see 2 windows displaying the QMLs. But they are being rendered on same display. How do I attach the windows to different screens ?