Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, July 2007
QGraphicsView, How can I prevent child items expand over parent items


Message 1 in thread

Hello,

I have a qgrahicsrectitem which has some child items, whose class are
qgraphicstextitem. I set some text to the textitems. However, the text
items are enlarged too much and goes over the bounds of their parent
items. I want them be clipped if they are larger than their parents.
How can I do this. Textitems' heights are not resizable. The API only
allows me to set their widths.

Please help me
Mike

--
 [ signature omitted ]