Port to Qt 5.