Hi All,
I am using QT Embedded 4.6.2 on a Debian 2.6.33.7 machine.
I have realized that QLabel->setText cause memory increase.
There are more than 15 Qlabel on screen changing very frequently.
I investigate memory usage with top command and it incerase continiously.
Let me give some numbers i get with top command(which may not mean so much to you)
I start with %1.0 memory usage
After 200 change on screen( means 200 * 15 setText call) it becomes 1.1
After 800 it becomes %1.2
After 1200 it becomes %1.3
after 2 days test it becomes %5.1
All labels created using QDesigner not manually, so there should not be new - delete issues i guess.
If you consider this SW will run for weeks on touched, it may cause some issues.
Then i changed all QLabels with QLineEdit and test it in the same way there is no increase at all.(tested 5 days almost 60.000 * 15 call to setText of QLineEdit)
Bookmarks