Hello! I stuck in a strange error. Hope you could help me to solve it, thanks in advance!
I use QGraphicsScene.addItem() to add a QGraphicsProxyWidget as an Item, and it succeeded. However, when I use itemAt(pos) to get the item, since the returned item is of type QGraphicsItemInterface<eclipse-javadoc:%E2%98%82=NEMO%20Multi-Touch/E:%5C/WorkPlace_LeeZm%5C/SDK%5C/qtjambi-4.6.3%5C/qtjambi-4.6.3.jar%3Ccom.trolltech.qt.gui(QGraphicsScene.class%E2%98%83QGraphicsScene~itemAt~Lcom.trolltech.qt.core.QPointF;%E2%98%82QGraphicsItemInterface>, so in order to use it as QGraphicsProxyWidget , I did a cast from QGraphicsItemInterface<eclipse-javadoc:%E2%98%82=NEMO%20Multi-Touch/E:%5C/WorkPlace_LeeZm%5C/SDK%5C/qtjambi-4.6.3%5C/qtjambi-4.6.3.jar%3Ccom.trolltech.qt.gui(QGraphicsScene.class%E2%98%83QGraphicsScene~itemAt~Lcom.trolltech.qt.core.QPointF;%E2%98%82QGraphicsItemInterface> to QGraphicsProxyWidget, but then there was a ClassCastException thrown. So how can I get this item as type of QGraphicsProxyWidget? Thank you!!
_______________________________________________ Qt-jambi-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
