Dragging a QWidget in QT 5
问题 I have to make something like the iOS interface, 3x3 field of icons that can be dragged to change their position, and then remember it in an XML file. I decided to use Grid class (QWidget is parent) as a container and my own class, inherited from QWidget, as elements. Now I'm trying to learn how to perform a drag & drop for QWidget, but it seems like you are only able to drop onto a QWidget, but it's impossible to drag it. Is it impossible? How do I move this thing? 回答1: Dragging a widget isn