Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qt and memory usage

qt and memory usage

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 610 Views
  • 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.
  • E Offline
    E Offline
    Erni42
    wrote on 1 Dec 2015, 21:52 last edited by
    #1

    Hi and hello,

    i program an application showing different diagrams coming from one set of data. I put the diagrams on QLabel pixmap and put the labels on different tabs on a QTabWidget. All arranged with QT's layout system.
    After opening the data file, the first tab with text information is shown. If i switch to the first diagram tab, the program uses 3MB more memory, if i go to the next diagram tab, the memory usage increases. But all diagrams created at read time of the data file. Why does the program consumes more memory by showing the diagrams?
    If I load a different file, all tabs are destroyed but finally after showing all diagrams the application consumes more memory than ever before. Means, after open 100 files, the memory is completely used by my application.
    Where can i look for the reason?

    Thanks
    Erni24

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 1 Dec 2015, 21:57 last edited by
      #2

      Hi,

      You should first check how you are creating the pixmaps, then if you are properly releasing the memory you might have allocated.

      Depending on the OS you are running, you can use Valgrind to help you check your memory usage.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      1 Dec 2015, 21:52

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved