title: Qt Quick memory usage
body: <p>Working on a medium size Qt project we've noticed, that memory consumption is surprisingly high when there is not much going on on the screen. My attempts to find some kind of memleak led me to CREATE_QML_OBJECT macro, where qml instance objects are created. After removing all custom ui elements from loaded qml file and leaving just four basic ones I got</p>
  
  <pre><code>Rectangle {
      Button {}
      CheckBox {}
      Slider {}
      TextField {}
  }
  </code></pre>
  
  <p>And this thing consumes about ~1-1.5 MB.</p>
  
  <p>I've had a look at QtQuick demo projects and its the same thing there:</p>
  
  <p><a href="http://qt-project.org/doc/qt-5/qtquickcontrols-gallery-example.html" rel="noreferrer">Gallery demo</a>. Just a bunch of controls, 100 MB on startup.</p>
  
  <p><a href="http://qt-project.org/doc/qt-4.8/declarative-tutorials-samegame-samegame3.html" rel="noreferrer">Same game demo</a>. Simple game, after 5 mins of playing 256MB are gone.</p>
  
  <p>I'm really surprised by the fact that a simple QtQuick QML application can eat enormous amount of memory. Does anybody know what causes this allocations and is there a way to manage it?</p>
  
  <p>Any help will be greatly appreciated.</p>
  
  <hr>
  
  <p>Related links, haven't found an answer there</p>
  
  <p><a href="http://qt-project.org/forums/viewthread/24627" rel="noreferrer">QML big memory consumption?</a></p>
  
  <p><a href="http://qt-project.org/forums/viewthread/25855" rel="noreferrer">Memory footprint of QML applications</a></p>
  
  <p><a href="http://qt-project.org/doc/qt-5/qtquick-performance.html" rel="noreferrer">Performance Considerations And Suggestions</a></p>