Results 1 to 2 of 2

Thread: Memory usage of simple Qt app

  1. #1
    Join Date
    Apr 2009
    Posts
    63
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Windows

    Default Memory usage of simple Qt app

    I have a simple Qt GUI application with 4 or 5 simple controls on it (button, line edit, etc.) I have a lot of memory constraints to deal with as far as the system it is going on so I have been trying to trim down the memory usage. I've noticed that if I run the app in full screen, (with my monitor being at 1920x1200 res), it takes up 7 more meg than if I run it at its normal size (something like 800x600). It's such a simple app that doesn't do much, yet just SITTING there doing nothing it's taking up 20 meg of RAM (on my windows machine). Are there any good ways to help trim that memory usage down?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,590
    Thanks
    13
    Thanked 1,586 Times in 1,515 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Memory usage of simple Qt app

    It seems possible that the app is keeping an off-screen buffer of the Qt Window or what it is obscuring. Assuming you are running that resolution with 24-bit colour you will need around 7 megabytes (1920x1200x3) of memory to do this (about 1.5 at 800x600).

Similar Threads

  1. Bad memory usage on QWebView I think
    By jiturra in forum Qt Programming
    Replies: 15
    Last Post: 21st January 2014, 21:35
  2. QStyles and it's memory usage
    By RSX in forum Qt Programming
    Replies: 0
    Last Post: 28th August 2009, 15:18
  3. Replies: 8
    Last Post: 1st June 2009, 20:59
  4. Program memory usage in windows
    By gerix in forum Installation and Deployment
    Replies: 4
    Last Post: 2nd February 2009, 01:35
  5. CPU and Memory Usage
    By philwinder in forum Qt Programming
    Replies: 16
    Last Post: 17th May 2008, 23:25

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.