PDA

View Full Version : Drawing Rectangle with mouse press and release



Jakr1387
5th November 2014, 06:32
Hello Everyone,

I have an image displayed on QLabel and in that image I have to select co-ordinates on Mouse press and Release event. I have done that and now I am thinking to start drawing a rectangle when the mouse is pressed and finish the rectangle when the mouse is released. The rectangle should be in some color. any suggestions with examples will be highly appreciated.


Thanks in advance!!!:)


Regards
Jakr1387

wysota
5th November 2014, 08:14
QPainter::drawRect() or QRubberBand.