[Qt-interest] Collision of QGraphicsItem with the edge of QGraphicView

QKrzysztof Szewczyk qt at kszewczyk.info
Sun Jun 6 23:38:07 CEST 2010


Hello,
I want to calculate collision of QGraphicsItem wit the edge of 
QGraphicView, for example i have ball that will be bouncing when hit the 
edge of QGraphicView widget. But i dont know how to get height and with 
of QGraphicView , i thought that to set two variables and methods like 
setWidth and setHeight for the ball class and update at every resize 
event, but is there any another way?

Cheers
Krzysiek



More information about the Qt-interest-old mailing list