Wazery
Wazery

Reputation: 15902

Get mouse position of the QDragEnterEvent

As the photo below shows, I want to get the mouse position on the canvas while dropping a QListWidgetItem to the canvas, this mouse position will facilitate to me getting the object I dropped the item on.

More explanation: The dragging and dropping will be in my canvas class, I want to check if the dragging and dropping is from the QListWidgetItems, and if so it will get the current mouse position.

Drag QListWidgetItem to the Ogre canvas

Upvotes: 0

Views: 657

Answers (1)

Related Questions