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

QQuickPaintedItem directly used, will grow infinite memory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.13.0
    • Fix Version/s: None
    • Component/s: Quick: Other
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      I have a class PaintedItem that inherits QQuickPaintedItem, when I using in qml,
      then keep changing the window size,memory will always grow.

      For example, have a class:

      class PaintedItem : public QQuickPaintedItem
      {
         PaintedItem(QQuickItem *parent = nullptr) : QQuickPaintedItem(parent) { }
         void paint(QPainter *painter) 
         {
            //do nothing
         }
      }

      After register in qml:

      Window{
         visible: true
         width: 640
         height: 480
         PaintedItem {
           anchors.fill: parent
         }
      }
      

      Then, constantly changing the size of the window, the memory will grow indefinitely. 

      Qt version is 5.13, but 5.12 is no problem.

       

        Attachments

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

          Activity

            People

            • Assignee:
              w00t Robin Burchell
              Reporter:
              menpens menv pengsheng
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes