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. Qml problem with memory usage

Qml problem with memory usage

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 299 Views 3 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.
  • A Offline
    A Offline
    Alessio8891
    wrote on last edited by
    #1

    Hi,

    I have a problem with QML, i develop a simple interface with a Window and one button, if you click the button
    it shows an other Window. If you notice the memory usage when open the second window, you can see that it increases,
    but when you close the window the memory decreases only of a little part.
    I know that it is possible that the system preserves
    part of memory for the feature "creation" but if I click the button an other way, the memory grows( and so I lost 1/2 Mb of memory).
    I read a lot of documentation,I destroy the second window
    ,delete all its reference and force the garbage collector, but the situation is the same.
    This is a very big problem because if you repeat this operation for a long time, your application crash (for memory usage).
    I work with Qt 5.9.3 on Windows but have the same problem in Linux and Mac.

    Can you tell me. Thanks a lot.

    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