PDA

View Full Version : How can I create a resizealbe box like in this example



phill
1st June 2011, 23:48
Hey guys,

I'm quite new to PYQT and Python.

What I want to do is something similar to the example image in the link below. Basically There will be an image on a form, and a box a user can resize to select part of the image to crop. I have no idea what this type of box is, so google isnt really helpful.

https://picasaweb.google.com/lh/photo/2YMSQdTuhgA1b5yGdAESMg?feat=directlink

Regards,
Phill

ChrisW67
2nd June 2011, 00:09
Take a look at QRubberBand

squidge
2nd June 2011, 00:10
Bounding box?

Scrap that, beaten by Chris :D

phill
2nd June 2011, 22:45
Hmm, not quite what i'm after, i want the box to stay on the screen with little handles so that once it has been placed, it can be stretched to a different size. So if I click on the rubberband again, it wont dissapear, instead, I'll be able to modify its size.

Hmm, I think that is as clear as mud, but I cant think how to explain myself better!