Hi all,
Working on simple CAD application using QGraphicsView/QGraphicsScene, I'm trying to implement a 'text entity' derived from QGraphicsItem. (something like the QGraphicsSimpleTextItem).
Inside this item I'm using the QTextLayout::draw() to draw the text. And this is the problem. The text is drawn also outside the view widget (QGraphicsView) as shows the attached image.
Has anybody an idea how to solve this? I can also post a code ...
Thans a lot
Tomas
Bookmarks