I want my GraphicsScene to receive drop events, but it does not seem to work. I can set an item inside my scene to receive drops, but not the scene itself.
What am I failing to read?
I want my GraphicsScene to receive drop events, but it does not seem to work. I can set an item inside my scene to receive drops, but not the scene itself.
What am I failing to read?
Did you reimplement dragEnterEvent() and/or dragMoveEvent() for the scene?
I did dragEnterEvent, but then all I get is a reaction when I drag into the scene and nothing when I drop into the scene. I have not tried dragMoveEvent. I have tried dropEvent and that is not working for the scene.
dragEnterEvent() itself is not enough as the default dragMoveEvent() will ignore drags for areas not occupied by items.
prof.ebral (5th March 2010)
I tried that after I read your post, Wysota. I apologize, I should have updated my status on the thread.
After I reclass both of those, is there a third step that I am missing?
Would you care to explain what you mean by that?Originally Posted by prof.ebral
Sorry. I meant re-implement. In PyQt I just add the function to the class when the event occurs the function is called.
just print statements so I could determine if they are working.
How do I determine that?
Bookmarks