On Fri, 2009-01-16 at 09:42 +0100, Gunnar Sletta wrote:
> > I end up with the following error:
> > 
> > QtJambiTypeManager::convertInternalToExternal: Cannot convert to type 
> > 'com/trolltech/qt/gui/QGraphicsItem$ConcreteWrapper' from 'QGraphicsItem*'
> > 
> > Any idea where this might come from?
> 
> Do you have the code?

The original code (without using item groups) can be found at (1). It's
quite a bit and I guess you don't want to walk through it all so let me
highlight the interesting places: WayItem (see 2, based on 3 and 4) is
one of the graphics items which I try to wrap in an item group.

I try to wrap my custom items using the following code (not yet to be
found in the links I posted)

ViewItem item = ViewItem.createViewItem(element);
QGraphicsItemGroup group = new QGraphicsItemGroup();
group.addToGroup(item); //Results in error

I think it might be related to this bug report (5). The bug description
does fit my code (itemChange is overridden in WayItem). I'll try to
remove that method temporarily later today, when I have access to my
development machine.

Regards,
Matthias


(1) https://eworld.svn.sourceforge.net/svnroot/eworld
(2)
https://eworld.svn.sourceforge.net/svnroot/eworld/trunk/eWorld/plugins/de.hpi.eworld.networkview/source/de/hpi/eworld/networkview/model/WayItem.java
(3)
https://eworld.svn.sourceforge.net/svnroot/eworld/trunk/eWorld/plugins/de.hpi.eworld.networkview/source/de/hpi/eworld/networkview/model/ViewItem.java
(4)
https://eworld.svn.sourceforge.net/svnroot/eworld/trunk/eWorld/plugins/de.hpi.eworld.networkview/source/de/hpi/eworld/networkview/model/HoverItem.java
(5)
http://www.qtsoftware.com/developer/task-tracker/index_html?method=entry&id=228957

_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to