Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.7.4, 4.8.0, 4.8.1, 4.8.2
-
None
-
Windows 7 Professional x64
Description
With this code, my program consumes an additional 100MB of Memory on a Windows 7 x64 – MSVC10/MSVC9 computer using Qt 4.7.4, 4.8.0, 4.8.1 and 4.8.2. Also if the painting is done, the memory does not get released.
Is this memory consumption normal?
void MyWidget::paintEvent(QPaintEvent *event) { QPainter p(this); QFont f(p.font()); int fHeight = height(); for (int s=5; s<500; s++) { f.setPixelSize(s); p.setFont(f); p.drawText(0, fHeight, "Hello World"); } }
This code is just a sample to easily show the behaviour. In my case i have a lot of painting going on with different font sizes, which comes at the end to the same issue.