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. QSlider memory leaks?
Qt 6.11 is out! See what's new in the release blog

QSlider memory leaks?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.4k 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.
  • K Offline
    K Offline
    Kobid
    wrote on last edited by
    #1

    Hi,

    I have QT 5.0 on linux 64 bit and I noticed something strange. I have small music player. Initially it has 14.4 MB in RAM. But after listen three songs it grow up to 26 MB and still growing. I thought that I have some memory leaks but valgrind show that everything is ok. So I started comment my code and after comment this: ui->horizontalSlider->setValue(pos); everything is now ok, my app has always ~14MB in RAM. So I tried with empty project with QSlider only (max 200). Init: 5 MB, sliding to the end: 11 MB. With max 1000 I get almost 20MB. Is this normal that such small and simple control take so much RAM?

    Regards

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      Sound like something to file a "bugreport":https://bugreports.qt-project.org on. Please include the minimum example you created to show the issue.

      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