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

Creating main window on X11 multi head without QDesktopWidget

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Invalid
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.11.2, 5.12.0 Beta 4
    • Widgets: Main Window
    • None
    • Linux/X11

      To assign a main window to a X11 multi head display, i am using QDesktopWidget::screen(screen number) as the parent of the main window. It is not possible to set the xy position of the window, because every screen starts with (0, 0). The screen have to be assigned at construction.

      Since Qt 5.10 or 5.11 QDesktopWidget::screen() is obsolete. We should use QScreen, but QScreen is only a QObject. A QMainWindow cannot be a child of a QObject. It needs a QWidget.

      Question: How to assign a QMainWindow to a X11 multi head display? It would be nice if the answer is part of the documentation.

        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
            volkerh Volker Hemsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes