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

Widget can not show correctly if there's a fullscreen QOpenGLWidget

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.6.0
    • None
    • windows

    Description

      A minimal test code:

      #include <QApplication>
      #include <QPushButton>
      #include <QOpenGLWidget>

      int main(int argc, char *argv[])
      {
      QApplication a(argc, argv);
      QOpenGLWidget w;
      QObject::connect(new QPushButton("show label", &w), &QPushButton::clicked, []()

      { (new QPushButton("new button"))->show(); }

      );
      w.showFullScreen();
      return a.exec();
      }

      "new button" should be in front of w. But the result is behind w. If change w to QWidget, the button shows correctly.

      Attachments

        Issue Links

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

          Activity

            People

              lagocs Laszlo Agocs
              ibingow wangbin
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes