Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Sample code for dropping a QGraphicsLineItem onto a QGraphicsScene.



  • Hi All,

    I am new to QGraphics module and learning about different QGraphicItems. Can anybody show me sample code demonstrating the drag-drop scenario of QGraphicsLineItem on to a QGraphicsScene.

    Additionally code to rotate/resize the line dropped onto the QGraphicsScene?


Log in to reply