Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2332

A shape drawn by a widget using QPainter is not deleted when the widget is deleted

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.4.2
    • PySide
    • None
    • Python and PyCharm.
    • Windows

    Description

      I have developed a widget that draws a circle using QPainter.  The test program creates the widget and then deletes it after 5 seconds.  But the circle it drew remains.  Shouldn't it disappear, or if not, how do I remove it (calling update() on the parent window has no effect)?

       

      (I am using PyQt6 rather than PySide.)

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            andy_knebworth Andy Weber
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes