For me, i used Qt 4.7.0 32 bits on Windows 7 64 bits. Here is an example:
#include <QApplication>
#include <Qt/qtextedit.h>
int main(int argc, char* argv[])
{
text->resize(400,400);
text->setUndoRedoEnabled(false);
text->show();
return app.exec();
}
#include <QApplication>
#include <Qt/qtextedit.h>
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
QTextEdit *text=new QTextEdit;
text->resize(400,400);
text->setUndoRedoEnabled(false);
text->show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
i) When i compile the code, i see in windows task manager that the memory used (by the exe result from this code ) is 12,700 K
ii) i copy a large text from notepad and past into textedit field, the memory used become : 13,500 K
iii) I move the cursor back/forward inside the text by arrow key, the memory used increased to : 16,100 K. I wait for a minute and it still 16,100 K.
iv) i delete the text that i just past from textedit field, the memory used is still 14,000 K. I wait for many minutes and it is still 14, 000 K.
v) if i continue past/delete manay time the memory used will increase more and more like: to 24, 000 K and it can be bigger than that.
Bookmarks