Keeping Qt4 compatibility