compatibility for Qt5