Qt4 compatibility