0

So I have a QLabel that will display an image in my GUI and I need to trigger a cropping sequence when I click a "Crop" button. Problem is I want to constrict the cropping area and create kind of like a bounding box around the label so if the user even tries to extend the crop outside, he can't and the generated image is cut off at the label's edges if that makes sense.

Some research tells me QRubberband might be the thing to use, however I wanted to get some insight on if there are better things to use and if not, how to use QRubberband in this manner (bounding box).

Saif eldeen Adel
  • 318
  • 3
  • 15

0 Answers0