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

QOpenGLWidget and QQuickWidget not clipped away when clipRect is empty

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.6.0 Alpha
    • Fix Version/s: 5.6.0 RC
    • Component/s: GUI: OpenGL
    • Labels:
      None
    • Commits:
      920472c85f6a5cd96344c28dbba0f199c34c6c10

      Description

      QTBUG-45860 fixed the biggest issues with clipping render-to-texture widgets. However, one particular case remains broken: when a widget is completely clipped away, it will still show up if there happen to be neighbouring QOpenGL/QuickWidgets around the scroll area.

      This is likely because of the incorrect interpretation of QWidgetPrivate::clipRect. Based on reading various QWidget code, it seems an empty rect indicates clip away completely, instead of no clipping. Currently the composition code in the backingstores interprets empty clipRects as no clipping needed.

      Reproducible with a modified qopenglwidget example.

        Attachments

        1. clip_bad.png
          clip_bad.png
          32 kB
        2. clip_correct.png
          clip_correct.png
          35 kB

          Issue Links

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

            Activity

              People

              Assignee:
              lagocs Laszlo Agocs
              Reporter:
              lagocs Laszlo Agocs
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes