Qt4/Qt5 compatible