Qt pre-4.7 compatibility