Hi,
I have a grid layout with two widgets displaying input and output image, i want to be able to draw a rectangle, like the one used in paint, only for output image with mouse button clicked and get the x,y,height,width (QRect) of the part selected when mouse button released.
I read the document for mousereleaseevent and from that i can get the position of the mouse, but what i want is the rectangle selection, how do i draw this rectangle and return the Qrect value??
I have no idea how to start with mouseevents or graphics items or such, please could be give me a example or a approach i can use to program this.
Thanks
Bookmarks