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

Window goes to wrong display when maximizing after minimizing

    XMLWordPrintable

Details

    • Windows

    Description

      Using Qt 6.5.1 on Windows 11 and VS 2022, there is an issue with Qt main window that appears to be a bug when there are two display monitors!

      steps to reproduce the issue:

      If you try the simple main.cpp shown below, try to maximize the window, then minimize it to taskbar, return back to Qt application using Alt+Tab and you will get the main window on the other display monitor
      This happens only if you launch the application on first display, then drag it to the second one, then maximize, minimize then Alt+Tab.

      (watch the attached video)

      #include <QtWidgets>
       
      int main(int argc, char * argv[])

      {     QApplication * app = new QApplication(argc, argv);       QWidget * w = new QWidget();     w->showMaximized();     return app->exec(); }

      Attachments

        For Gerrit Dashboard: QTBUG-117128
        # Subject Branch Project Status CR V

        Activity

          People

            timothee.keller Timothée Keller
            chakib Chakib Boutaghane
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change