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

QGraphicsOpacityEffect on top of QOpenGLWidget gets more transparent

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.5.3
    • GUI: OpenGL, GUI: Painting
    • None
    • macOS

    Description

      Similar to https://bugreports.qt.io/browse/QTBUG-50508

      I have attached a reproducible example. I believe this happens on other platforms other than macOS as well. I noticed this when evaluating a major version upgrade for our application from qt 5 to 6.

      I am placing a semi-transparent widget on top of an opaque qopenglwidget. When the openglwidget is visible, the transparency of the widget on top decreases. This does not occur in qt 5.15.15.

      I also tried not using stylesheets and just QPainter in the attached example, but with no difference. The opacity of the QGraphicsOpacityEffect does not change when this (the darkening of the widget) occurs.

      Attachments

        1. image.png
          image.png
          45 kB
        2. image (1).png
          image (1).png
          38 kB
        3. opacity_opengl_bug.zip
          6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            alex-mal Alex Malynovsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes