Re: [Interest] Draw multiple rectangles in a QGraphicsItem using the mouse

2015-10-26 Thread David Carmona
Ok, I'm going to try and tell you. David Le 26 oct. 2015 13:59, "Michael Sué" a écrit : > Hi David, > > > However, I have some problems when I actually want to draw rectangles > with negatives width and height. I mean when the values of origPoint.x() and > > origPoint.y() are strictly higher tha

Re: [Interest] Draw multiple rectangles in a QGraphicsItem using the mouse

2015-10-26 Thread David Carmona
I have to use the QTransform class ? Thank you so much for your help David 2015-10-20 9:10 GMT+02:00 David Carmona : > Hi Michael, > > Thank you for your answer. I'm going to try it and tell you. > > Regards > David > Le 20 oct. 2015 08:42, "Michael Sué" a écri

Re: [Interest] Draw multiple rectangles in a QGraphicsItem using the mouse

2015-10-20 Thread David Carmona
Hi Michael, Thank you for your answer. I'm going to try it and tell you. Regards David Le 20 oct. 2015 08:42, "Michael Sué" a écrit : > Hi, > > > I would like to create a Graphical User Interface which allows the user > to draw as many rectangles as he wants on an image using the left button of

[Interest] Draw multiple rectangles in a QGraphicsItem using the mouse

2015-10-19 Thread David Carmona
Hi everybody, I would like to create a Graphical User Interface which allows the user to draw as many rectangles as he wants on an image using the left button of his mouse. I have already implemented part of the code. I have a QGraphicsView which displays an image contained in a scene : bool Imag