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

ShowFullScreen on Multi Screens keeps all windows on the same screen

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.4.0
    • GUI: Window management
    • None
    • Windows 8.1
      Qt 5.4.0

    Description

      Two screens available on a computer, two widgets to be displayed using the showFullScreen method. The first widget is moved to the first screen, and the second widget is moved to the second screen. Then is applied the showFullScreen on both widgets : they are displayed in the same screen.

      Example of code :

      test.cpp
          QWidget* l_screen1 = new QWidget();
          QWidget* l_screen2 = new QWidget();
      
          QList<QScreen*> l_list = QApplication::screens();
          
          // Assuming l_list.size() == 2
          QRect l_availableGeometryScreen1 = l_list.at(0)->availableGeometry();
          l_screen1->move(l_availableGeometryScreen1.x(), 0);
          QRect l_availableGeometryScreen2 = l_list.at(1)->availableGeometry();
          l_screen2->move(l_availableGeometryScreen2.x(), 0);
      
          l_screen1->showFullScreen();
          l_screen2->showFullScreen();
      
      

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            lionel.charaix lionel charaix
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes