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

Windows: QGuiApplication::primaryScreenChanged is not emitted when changing primary screen

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 6.0.3, 6.1.0 RC
    • QPA: Windows
    • None
    • Windows

    Description

      Steps to reproduce:

      1. Open any Qt gui app, place a breakpoint in QWindowSystemInterface::handlePrimaryScreenChanged.
      2. Open display settings, change main display (you need at least two monitors for this to work).
      3. Breakpoint is never hit (and thus QGuiApplication:: primaryScreen is not changed, and QGuiApplication:: primaryScreenChanged is not emitted).

       

      I did some digging and it looks like the right place to call QWindowSystemInterface::handlePrimaryScreenChanged would be from inside the QWindowsScreen::handleChanges. I've attached a patch.

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            elric Elric
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes