I just tried out the Qt 4.5 Tech Preview and notice two problems with QPainter::drawText() (being used in a QGraphicsItem::paint() method):
- If drawText() is called with rectangle and the option Qt::TextWordWrap and asked to draw text which doesn't fit within the rectangle (i.e. one long word) then it draws the text, but other (previous) painter actions are lost. I'm using such code to draw labels on shapes in a diagram. If TextWordWrap is used and there are long labels without whitespace then all the labels appear, but most shapes are not drawn. Interestingly, at least one shape will always be drawn, but which shape this is changes as the QGraphicsView is panned or zoomed. The problem doesn't occur if the QGraphicsView is made to use OpenGL. - Text is no longer drawn anti-aliased by default, even though the documentation says it is. I would have filed the drawText() bug in the tracker, but you can't select 4.5-tech-preview as a version there. _______________________________________________ Qt4-preview-feedback mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback
