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

Missing update when setting opacity on an item that had previously opacity 0.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.6.2
    • 4.6.0, 4.6.1
    • Widgets: GraphicsView
    • None
    • 37f1aec1a4e71a7102e8cd2e2908c8d3be7e29f5

      In some cases, there are missing updates when setting opacity (!= 0.0) to an item that had previously opaciy 0.0.
      This is due to the internal data structure, paintedViewBoundingRects, being set to (-1,-1,-1,-1), which means outside the viewport, when the item has opacity 0.0.
      Afterwards when you want to show the respective item by updating its opacity, the update is lost.

      Test case attached.

        1. autotest.cpp
          0.9 kB
          Leonardo Sobral Cunha
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            lscunha Leonardo Sobral Cunha (Inactive)
            lscunha Leonardo Sobral Cunha (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes