[Qt-interest] QGraphicsTextItem adjustSize()
Rick Vernam
rickv at hobi.com
Mon Feb 23 18:19:15 CET 2009
On Monday 23 February 2009 11:03:45 am Stacy Alley wrote:
> Hello,
> I'm working with a very large QGraphicsScene (width =1.92991e+08
> height=9.86328e+07)
> I add QGraphicsPolygonItems to the scene that represent a footprint of
> image data. I'm also trying to add
> a QGraphicsTextItem on top of the polygon item to label the footprint
> with it's filename. I'm having a hard time
> setting the size for the font of the text item. I just found the
> QGraphicsItem::adjustSize() method, but that did not
> do anything. Well, at least I can't see what it did because I can not
> even see the text item. (Font too small I believe.)
> Does anybody have an hints for me as to how I set the font size for
> these text items?
>
> I'm using Qt 4.4.1 compiling on Linux.
>
> Thanks in advanced!
> Stacy
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
QGraphicsTextItem::setFont(...)
something like grahicsTextItemObject.setFont(QFont("Arial", 100));
More information about the Qt-interest-old
mailing list