[Qt-qml] Qml extending with QGraphicsWidgets
Christian Kamm
christian.d.kamm at nokia.com
Wed Jul 14 10:21:13 CEST 2010
On Tuesday 13 July 2010 18:29:48 Alhola Kate (Nokia-CD/Helsinki) wrote:
> Is there some extra property that need to be set compared traditional
> c++ QGraphicsView items to get it displayed in Qml ? I tested that if I
> just add my widget to normal QGraphicsScene, it gets displayed and both
> paint() and boundingRect() get called.
I've run into this myself; setting
setFlag(QGraphicsItem::ItemHasNoContents, false);
in your item's constructor should do it.
Cheers,
Christian
More information about the Qt-qml
mailing list