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

Showing QOpenGLWidget hides QMainWindow

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.8.3, 6.9.1
    • GUI: OpenGL
    • None
    • Linux/Wayland, Linux/X11, Windows

    Description

      When a QOpenGLWidget is first shown, QMainWindow is hidden and immediately shown again. This happens only the first time a QOpenGLWidget is shown. Subsequent shows do not hide QMainWindow. Tested on Qt 6.8.3 on Windows, Linux x11 (GNOME 3.36) and Qt 6.9.1 on Linux/Wayland (KDE 6.4). Qt 6.1.3 did not have this issue.

      To reproduce, run the attached program and check the checkbox to show a QOpenGLWidget -> the QMainWindow closes and reopens.

      Attachments

        1. main.cpp
          0.9 kB
        2. qt_opengl_hide_bug.pro
          0.5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            marcusle Marcus Leivo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes