PDA

View Full Version : How QRectF::adjusted() works



onurozcelik
27th May 2010, 09:47
My custom graphics item has (0,-60 60x60) boundingRect. When I adjust the coordinates with


rect.adjusted(-5,-5,5,5)

new boundingRect returns (-5,-65,70x70). I read the documentation here (http://doc.trolltech.com/4.6/qrectf.html#adjusted) and I think boundingRect should return (-5,-65,65x65)
Do I misunderstand the doc?

onurozcelik
27th May 2010, 10:04
I find the answer here (http://stackoverflow.com/questions/2919306/how-qrectfadjusted-works)