[Qt-interest] QGraphicsTextItem adjustSize()

Stacy Alley salley at usgs.gov
Mon Feb 23 18:03:45 CET 2009


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



More information about the Qt-interest-old mailing list