I created an application with Qt/QML, load a qml file with QQuickView
, and with this use a Loader
element for change the pages(gui) inside application, and works fine, but my problem is the increase of the program memory usage (the application starts with less of 100MB, and after 1 day, the size is about 500 MB or more), I originally write and update the model of objects in Qml (javascript), but the application grows quickly, changing to create models with C++ objects, memory usage grows less but the problem is still not solved.
My model can be updated continuously (even 1 time per second), but I don't believe that be the reason of memory rises.
But with that problem come other strangers behaviors is with TableView when changes to that page, the memory rises even 10 MB, I try to free memory with gc()
, but i don't get successful results, and in the change of page, the memory sometimes can rise by 1 MB.
Note: I use a Qt 5.5, and msvc 2010.