To information. ---------- Forwarded message ---------- From: Zhongmiao Li <[email protected]> Date: Wed, Oct 27, 2010 at 2:52 PM Subject: Re: [Qt-jambi-interest] Qt-jambi-interest Digest, Vol 33, Issue 21 To: Helge Fredriksen <[email protected]>
I thought about keeping one, but in my program I have to get the specific widgetproxy by a give point, so I do not use this method. But after all, I just solved this problem, I use QGraphicsItemInterface.toGraphicsObject(), then it's OK. Hope this can also helps others and thanks very much! On 10/27/10, Helge Fredriksen <[email protected]> wrote: > 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 >> > -- Best regards Li Zhongmiao Digital Media, College of Computer Science, Zhejiang University
_______________________________________________ Qt-jambi-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
