Update for qt 5