Results 1 to 2 of 2

Thread: Why Qt5 Memory Usage Incresing?

  1. #1
    Join Date
    May 2013
    Posts
    2
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Why Qt5 Memory Usage Incresing?

    1.png
    after minimized the window
    2.png
    I use qtableview to display one grid dynamically,I found that ,my program increase the memory use,but when i minimized the window,the use return to normal status.
    I want to know if there is memery detect in my program ,or that is nomal? how did this happen?

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Why Qt5 Memory Usage Incresing?

    It is normal for Qt programs (at-least on windows) to use lesser memory than before minimizing. But this does not mean that your application does not have any memory leaks.

    Often developers will see that the actual memory leaks in the application are masked by this behavior. You will need to find other ways to detect memory leaks, like run the application for long hours with full load, or using some memory/program analysis tools
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

Similar Threads

  1. QProcess and memory usage
    By ts66 in forum Newbie
    Replies: 4
    Last Post: 16th December 2011, 20:34
  2. Memory usage of simple Qt app
    By DiamonDogX in forum Qt Programming
    Replies: 1
    Last Post: 23rd September 2009, 06:53
  3. CPU and Memory Usage
    By philwinder in forum Qt Programming
    Replies: 16
    Last Post: 17th May 2008, 22:25
  4. QString memory usage
    By jogeshwarakundi in forum Newbie
    Replies: 1
    Last Post: 13th December 2007, 06:48
  5. How to determine memory usage?
    By nopalot in forum General Programming
    Replies: 3
    Last Post: 11th February 2007, 19:50

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.