[Qt-interest] QGraphicsItem::scene() returns 0x0

Wathek LOUED wathek at gmail.com
Wed Apr 20 01:22:59 CEST 2011


Hi everybody,

I got a problem when I call QGraphicsItem::scene() function it returns 0x0
however it should returns the address of the scene of the QGraphicsItem.
It's strange cause I've used QGraphicsScene::addItem function to add my
QGraphicsItem and I can see the item in my scene but when I try to get the
scene address it returns 0x0.

I need to get that to be able to get the scene dimensions. I cannot see an
other way to do it.

Thank you so much

Sincerely
Wathek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110420/09edd88a/attachment.html 


More information about the Qt-interest-old mailing list