Support scenegraph threaded rendering and remove Qt4 support