Removed the use of deprecated QPointer