Qt5 compatibility migration