Re: [PyQt] QGraphicsView view jumping bug

2012-10-23 Thread Zsolt Ero
Oh, thanks for that! Was driving me crazy. Zsolt On 23 October 2012 22:37, Vincent Vande Vyvre wrote: > Le 23/10/12 22:34, Zsolt Ero a écrit : > > OK, here is the smallest possible example I could make it. The bug > > happens when I click on the lower half of the image.

Re: [PyQt] QGraphicsView view jumping bug

2012-10-23 Thread Zsolt Ero
OK, here is the smallest possible example I could make it. The bug happens when I click on the lower half of the image. Just copy a jpg image at the same folder and rename it to "big.jpg". Zsolt On 23 October 2012 20:42, Phil Thompson wrote: > On Tue, 23 Oct 2012 20:20:30

[PyQt] QGraphicsView view jumping bug

2012-10-23 Thread Zsolt Ero
I'm having a weird problem: my whole QGraphicsView goes crazy if I uncomment the following lines in a class (of QtGui.QGraphicsItem): if len( self.points ) == 1: rect = QtCore.QRectF( self.points[0].x()-self.radius, self.points[0].y()-self.radius, self.points[0].x()+self.radius, self.points[0].y