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

Qt-interest Archive, January 2008
Size of QGraphicsItem


Message 1 in thread

Hi,

I've created a QGraphicsItem based on user input. Thus I don't know how big
it is in terms of width and height in pixel. There must be a function for
this, but I can't find it in the online documentation. Am I blind or isn't
there anything?

Thanks!

--
 [ signature omitted ] 

Message 2 in thread


> -----Original Message-----
> From: KH [mailto:karl-heinz-1950@xxxxxx] 
> Sent: Saturday, 12 January 2008 10:22
> To: qt-interest@xxxxxxxxxxxxx
> Subject: Size of QGraphicsItem
> 
> 
> Hi,
> 
> I've created a QGraphicsItem based on user input. Thus I 
> don't know how big
> it is in terms of width and height in pixel. There must be a 
> function for
> this, but I can't find it in the online documentation. Am I 
> blind or isn't
> there anything?
> 
> Thanks!

Hi, 

Can't you use boundingRect() or for more detailed, shape()? 

Hope that helps, 

Tony Rietwyk

--
 [ signature omitted ]