compatibility with Qt4.8