[Qt-interest] Few questions about drawing text

Cyril C cyril.mailing.list at gmail.com
Sun Sep 5 17:08:12 CEST 2010


  Hi all, I've got simple questions related to text drawing in Qt, for 
which I can't figure out a proper answer.

1a. Is it legal and portable to draw text in a non-GUI thread onto a 
QImage using QPainter::drawText? From this nice article by Gunnar ( 
http://labs.trolltech.com/blogs/category/painting ) it seems so, but I 
am still sceptical..
1b. Of course I would prefer drawing to a GLTexture (and not only text) 
but my understanding is that even in 4.7, drawing to a QGLContexts in 
separate threads won't be supported, is that right?

2. Does QGraphicsTextItem or QGraphicsSimpleTextItem take advantage of 
QStaticText? I am under the impression that it's not the case, even 
though graphics text items are pretty static in most use cases.

Thanks for any answers and enlightments,
Cyril
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100905/0da00d0a/attachment.html 


More information about the Qt-interest-old mailing list