Return QPointer instead of casting around