Transition from Qt 4 to Qt 5