[Qt-interest] [SOLVED] Re: Howto Do `hit Test' with QGraphicsItems ?

Aaron Lewis aaron.lewis1989 at gmail.com
Sat May 8 05:23:08 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/06/2010 04:18 PM, Sean Harmer wrote:

> Not just a rect, you can set any shape. The boundingRect() function must be 
> overridden to provide the bounding rect. The shape() function allows you 
> greater control over your bounding region for hit detection.

Yot got it , Sean , cuz nearly all of my objects are rectangle , so i
just simply set up an Bigger Rectangle Bound of my Player.

Thanks Sean.

- -- 
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4r0n on freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvk2RwACgkQvf41sEptMqD+SQCggUy2ND3lF+Ds8XTL1nD0nFlb
zz0An3qng+VcNZAQyNYUnsRBrE3CbbhQ
=JOTb
-----END PGP SIGNATURE-----



More information about the Qt-interest-old mailing list