Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Drawing a rectangle selection box on QImage using Mouse?
MarKS last edited by
I want to draw a rectangle on a QImage that is displayed on a QLabel using Mouse.
I am using Mouse events as SIGNALS in a separate class of my_qlabel.
But then i don't know how to get these mouse event work for drawing a selection box on the image. And after drawing the selection box i want the image to be cropped to the size of the rectangle.
QRubberBand might be of interest in your case.
Hope it helps