Update for qt5