Now it works in qt5