Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QSlider memory leaks?
Kobid last edited by
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?
andre last edited by
Sound like something to file a "bugreport":https://bugreports.qt-project.org on. Please include the minimum example you created to show the issue.