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

QGLWidget obscuring other widgets on Mac

    XMLWordPrintable

Details

    • Bug
    • Resolution: Moved
    • Not Evaluated
    • None
    • 4.6.2
    • None
    • Mac OSX 10.6.2 (Snow Leopard), Qt 4.6.1, Qt 4.6.2. Verified on GPUs from various manufacturers.
    • macOS

    Description

      I have both QTreeWidget and QGraphicsView widgets that I open in a frameless window (Qt::FramelessWindowHint) in a GUI that contains one or more QGLWidgets "viewports" active in the window. These widgets can appear over the top of the QGLWidgets under Windows and Linux, but on the Mac, the QGLWidgets remain at the top of the child widget order.

      The QGLWidget is part of a QSplitter that can contain additional QGLWidgets or other "viewport" types. My tests are conducted using the QSplitter in a horizontal-split configuration, with the top half containing the QGLWidget. The Tree/GraphicsView widgets are parented to the main window, and setWindowFlags() using (Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint).

      I am using Qt 4.6.1 with the following build line for the Mac:

      ./configure -fast -cocoa -sdk /Developer/SDKs/MacOSX10.5.sdk -arch "x86 x86_64" -prefix <path> -nomake examples -nomake demos

      I have also tested Qt 4.6.2 using the same build line as above, with the same resulting behavior.

      I did some additional testing by adding a QPushButton child to the main window that contains the QGLWidgets, and positioned it such that it is half over the QGLWidget. No amount of raising or lowering of widgets prevents the QGLWidget on the Mac from obscuring the QPushButton.

      Attachments

        Issue Links

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

          Activity

            People

              kjernase Trond Kjernåsen (Inactive)
              bob Bob Hood
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes