3 Attachment(s)
MouseEvent co-ordinates error!!!
Hello Everyone,
I am trying to find the co-ordinates of an image inside Qlabel when Mouse press and Mouse release event occurs. Also I am drawing a rectangle with the Mouse press and release event using QRubberBand. My problem now is I am getting the same co-ordinates for Mouse press and release event and whereever i press and release mouse, it is showimg me the same co-ordinates. I dont know where I am going wrong. Some suggestion on this will be really helpful for me.
Plz find the result i am getting and I herewith attach my main code.
One more thing is that, I want Mouse press and release event only inside the QLabel. suggestion on that too will be helpful for me.
Thanks for your valuable time and have a nice day!!!
Jakr13