Results 1 to 2 of 2

Thread: QLabel->setText() cause memory incerase

  1. #1
    Join Date
    Jul 2011
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default QLabel->setText() cause memory incerase

    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)

  2. #2
    Join Date
    May 2011
    Posts
    239
    Thanks
    4
    Thanked 35 Times in 35 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Symbian S60

    Default Re: QLabel->setText() cause memory incerase

    You might not have any need to worry. See a similar enquiry: http://lists.trolltech.com/qt-intere...ad00767-0.html

Similar Threads

  1. QLabel->setText() sometimes not working
    By cass in forum Newbie
    Replies: 8
    Last Post: 16th May 2010, 13:12
  2. QLabel setText Problem
    By pmabie in forum Qt Programming
    Replies: 10
    Last Post: 1st November 2007, 23:32
  3. Problem with QLabel and setText
    By jambrek in forum Qt Programming
    Replies: 7
    Last Post: 31st October 2007, 16:02
  4. QLabel::setText causes part of widget to disappear
    By Pieter from Belgium in forum Qt Programming
    Replies: 4
    Last Post: 6th July 2007, 09:22
  5. QLabel::setText() how to
    By freak in forum Qt Programming
    Replies: 1
    Last Post: 30th October 2006, 17:19

Tags for this Thread

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.