The problem is related to the focus.
I had the same problem when showing/hidding the cursor.
Try to put back the focus to the game viewport and the cursor should be reflected.
// Sets back the focus to the game viewport
FSlateApplication::Get().SetAllUserFocusToGameViewport();