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

QOpenGLWidget and QQuickWidget not clipped away when clipRect is empty

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.6.0 RC
    • 5.6.0 Alpha
    • GUI: OpenGL
    • None
    • 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

          For Gerrit Dashboard: QTBUG-50719
          # Subject Branch Project Status CR V

          Activity

            People

              lagocs Laszlo Agocs
              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