Drawing a rectangle selection box on QImage using Mouse?
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