Use a QPointer to manage validity of the viewWidget pointer in medVtkView.