performance - Qt for iOS QPainter::drawText hangs for a few seconds first time it is called -
i'm using qt ios 5.2 , when trying draw text using qpainter, hang on call few seconds (5 seconds on iphone4 , around 3 on osx). after first time, won't block anymore if call again.
qimage image(qsize(200, 200), qimage::format_argb32_premultiplied); image.fill(qt::transparent); qpainter painter(&image); qpen pen(d->textcolor); painter.setpen(pen); qfont font(d->fontfamily, d->fontsize); painter.setfont(font); qdebug() << "before draw text"; painter.drawtext(qrect(0, 0, 200, 200), flags, d->text); //blocking call qdebug() << "after draw text";
i'm using same example in windows(qt5.1) , i've never had problems, same code runs smoothly.
i had execute code in thread won't block application, i'll need see text application launched. i've tested qstatictext no luck.
is experiencing same problem? there workaround?
Comments
Post a Comment