Hmm, did you try to keep some kind of hashmap to relate the widgets you
inserted with the ones you get in return? You might use getData()/data()
methods for doing this.

Helge F.

On Wed, Oct 27, 2010 at 2:43 PM, Zhongmiao Li <[email protected]> wrote:

> Thanks for your reply.
> I am using 4.6.3. Now I have used QGraphicsProxyWidget  to be the
> proxy of a button and used a QGraphicsScene to manipulate several
> QGraphicsProxyWidget  .
> However, I want to get a QGraphicsProxyWidget   accroding to the
> position of a point. Then the real problem happens.
>  To put all into nutshell, the conversion from
> QGraphicsProxyWidget    to    QGraphicsItemInterface  is Ok and has no
> problem.
> But from QGraphicsItemInterface to   QGraphicsProxyWidget, it  will
> throw an exception. That's strange because even the type cast from
> parent class to child clas should be Ok under Explicit type
> conversion. So I don't know how can I finish this conversion, or
> should I use some specfic function?
> Thank you
>
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to