Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-141421

QML Window always opens on the secondary monitor; screen property is ignored on X11 multi‑monitor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.10.0
    • Quick: Dialogs
    • None
    • Linux/X11

      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.

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            grumegargler Dmitry Reshitko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes