Maintain Qt4 compatibility