compatibility qith Qt5