Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to move rectangle with mouse ?
halil sogut last edited by
How can I move rectangle with drag and drop ?
You need to add a MouseArea to it and set up the drag property: link.
Pradeep P N last edited by
Just add MouseArea and make target of rectangle which you want to drag. Use drag property and just set X and Y of the mouse to the Rectangle's X and Y.