[Qt-interest] dropEvent of QGraphicsProxyWidget
Bo Sun
b.sun at tlk-thermo.com
Wed Oct 28 15:13:18 CET 2009
Hello,
I have a problem to reimplement dropEvent for a subclass of
QGraphicsProxyWidget. In the constructor I have called setAcceptDrops(true),
but the dropEvent could not be triggered. In a scene I used addItem to
insert a instance of this subclass and I tried to drag something on it, but
it does not work. The cursor shows that dropping is forbidden. I have also
created a subclass of QWidget and reimplement its dragEnterEvent and
dropEvent just like what is written in the help document, of course its
setAcceptDrops(true) is called. Using this subwidget the problem stays still
there. Do you have any idea?
Thanks a lot if you can give me some help for that.
Regards
Bo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091028/e28f9a76/attachment.html
More information about the Qt-interest-old
mailing list