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

[REG 6.3 -> 6.4] QOpenGLWidget has wrong window size with first showFullScreen() call on Wayland

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.4.0 Beta4, 6.4.0, 6.4.1, 6.4.2
    • GUI: OpenGL, QPA: Wayland
    • None
    • Linux/Wayland

    Description

      The following code creates a 640x480 window instead of a truly fullscreen window:

      #include <QtWidgets>
      #include <QtOpenGLWidgets>
      int main(int argc, char *argv[]) {
       QApplication app(argc, argv);
       QOpenGLWidget window;
       window.showFullScreen();
       return app.exec();
      }
      

       
      This is reproducible on Plasma Wayland, but not on Weston. This is new to Qt 6.4 and not reproducible with non-first showFullScreen(), i.e.

      #include <QtWidgets>
      #include <QtOpenGLWidgets>
      
      int main(int argc, char *argv[]) {
        QApplication app(argc, argv);
        QOpenGLWidget window;
        window.showFullScreen();
        window.hide();
        window.showFullScreen();
        return app.exec();
      }
      

      Will create a truly fullscreen window. non-opengl QWidget doesn't have such a bug.

      Attachments

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

        Activity

          People

            davidedmundson David Edmundson
            ilya-fedin Ilya Fedin
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes