I want to drag some to pyqtgraph. So, I did this:class my_pyqtgraph_widget()def def dragEnterEvent(self, ev):...def dropEvent(self, ev):......dragEnterEvent worked, but the dropEvent - not invoked. I got this message:
QGraphicsItem::ungrabMouse: not a mouse grabber
I start to dig information in the Internet and found, that I should reimplement this function in QGraphicsScene, not in Widget.Assume that this is correct, so, I go to the pyqtgraph's GraphicsScene.py. There I found the
def mouseReleaseEvent(self, ev):
...That, as I can see, handle drag events. But, I can't understand, how to use it.
| Luke -- You received this message because you are subscribed to a topic in the Google Groups "pyqtgraph" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyqtgraph/OKY-Y_rSlL4/unsubscribe. To unsubscribe from this group and all its topics, send an email to pyqtgraph+...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/CACZXET_TJ1Z_bj61TXQ%3D8MaPhKgGzCU51netLzxN_v36KV9kDw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out. |