[Qt-creator] Infinite Memory Consumption / QListView (QAbstractItemView), QLineEdit, ...
Thomas Hartmann
thomas.hartmann at thomashartmann.de
Sun Nov 16 12:01:36 CET 2008
I encounter an growing, infinite memory consumption in many Qt Construcotrs:
When instantiating objects of type QListView or other, derived from
QAbstractItemView execution does not return from the constructor. Top shows a
rapid growing memory consumption until finally the complete system does not
respond any more.
Same applies to the use of QLineEdit.
This does NOT happen if I don't create an QApplication object ;)
//-----------------------------------------
Build Settings:
Qt3 / Qt4 (same behaviour for both)
release / target (same behaviour for both)
QMake Args: /home/tom/test1/test1.pro -spec linux-g++ -r CONFIG+=debug_and_release
//-----------------------------------------
System Env:
Ubuntu 8.10 incl. all official patches
//-----------------------------------------
#include <QtGui/QApplication>
#include <QListView>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
//QListView TreeWidget; // Infinite memory consumption..
QListView* TreeWidget = new QListView(); // Infinite memory consumption..
// Execution never comes here
delete TreeWidget;
return a.exec();
}
//-----------------------------------------
More information about the Qt-creator-old
mailing list