Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt application increases memory
Qt 6.11 is out! See what's new in the release blog

Qt application increases memory

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 3 Posters 3.1k Views 1 Watching
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi,

    I have developed Qt application using qml and cpp in which i created too many windows which are all initially created at start up time, i just set visible true/false whenever i required/remove it. but when i change the visibility to true/false for too many windows it continuous increasing the memory slowly. initially it was 69 Mb and after some time it reaches to 90 Mb almost. can any one help?

    [edit: fixed typo in title, eddy]

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Take a look at loader. You can use it to only load views when you need them. I found it sped up one of my apps a little bit and decreased memory usage.

      http://doc.qt.nokia.com/4.7-snapshot/qml-loader.html

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        There could be many different reasons for an application to increase memory use over time. For example, there could be a simple memory leak in your app. You can try running the app in Valgrind's memcheck to see where the memory is allocated.

        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