I created a basic Qt Quick Application project using Qt Creator's wizard. Then, I built and run it. The application window appears on my secondary screen. The following does not change anything:
import QtQuick Window { width: 640 height: 480 visible: true title: qsTr("Hello World") screen: Qt.application.primaryScreen // <--- I added this line }
I was trying to play with different screen values (Qt.application.screens[0], Qt.application.screens[1]); nothing worked.