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

Removing ShapePaths from Shape results in properties for other shapes being confused

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 6.8.3, 6.9.0 Beta3, 6.10.0 FF
    • 6.8.0
    • Quick: Shapes
    • None
    • Windows 10 and Qt 6.8 via PySide
    • 18f280eed (dev), 385385dc4 (6.9), 4f267e4fe (6.8)

    Description

      Running the attached code will render three squares (red, green, blue). After one second the red square is removed from the Shape (the process is a little convoluted, the code must pop all of the items, and then append the non-first items back again). And after another second the green square is removed, and after that the blue square.

      After the red square is removed (you can see that is it removed by the output of the print), the software and geometry renderers will instead render a red square and a green square, hiding the blue square (nothing changes in the curve renderer due to QTBUG-133230). The root cause is that items added to the Shape are not marked as dirty, and so the only thing the renderer receives is that the count has changed, so the last item is removed from the cached data.

      Attachments

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

        Activity

          People

            vgt Eirik Aavitsland
            matsjoyce-refeyn Matthew Joyce
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes