Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qmlscene leaking memory on simple qml file
QtWS25 Last Chance

Qmlscene leaking memory on simple qml file

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 886 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sdrsdr
    wrote on last edited by
    #1

    HI All,
    I got this simple qml file and qmlsceen is leaking memory while the image is bouncing around. This is on windows 64bit OpenGL installed from qt-opensource-windows-x86-1.5.0-2-online.exe

    the qml is:

    @import QtQuick 2.0

    Rectangle {
    width: 360
    height: 360
    Text {
    text: qsTr("Hello World")
    anchors.centerIn: parent
    }
    MouseArea {
    anchors.fill: parent
    onClicked: {
    Qt.quit();
    }
    }

    Image {
        id: image1
        x: 8
        y: 8
        width: 45
        height: 39
        visible: true
        source: "qq_pl80.png"
        PropertyAnimation on x {
             to:320;
             duration:5000;
             easing.type: Easing.OutBounce;
             onStopped: {
                 if (to===320) to=8;
                 else {
                     to=320;
                     gc();
                 }
                 start();
             }
        }
    }
    

    }
    @

    Am I doing something wrong or this is "per design"? Shall I file a bug report?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sdrsdr
      wrote on last edited by
      #2

      Seems like this is QTBUG-28712 Please vote for it as it seems important

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved