Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Qt] qMRMLSliceView::sliceViewInteractorStyle is deprecated. Use interactorObserver instead. #16

Open
dpelacani opened this issue Feb 8, 2024 · 1 comment

Comments

@dpelacani
Copy link

[Qt] qMRMLSliceView::sliceViewInteractorStyle is deprecated. Use interactorObserver instead.

Error occuring when trying to include mask points in the image. Seems to be using a depecrated version in Slicer?

@askorikov
Copy link

This shouldn't affect anything for now, but FYI the deprecation was introduced in Slicer 5.6 (see Slicer/Slicer@1cc3b2c) and originates from

interactorStyle = slice_widget.sliceView().sliceViewInteractorStyle()
interactorStyle.SetActionEnabled(interactorStyle.BrowseSlice, False)
slice_widget.sliceView().setBackgroundColor(qt.QColor.fromRgbF(1, 1, 1))
self.slice_frozen = True
slice_widget.sliceController().setDisabled(self.slice_frozen) # freeze slidebar
def unfreezeSlice(self):
slice_widget = self.lm.sliceWidget(self.logic.slice_direction)
interactorStyle = slice_widget.sliceView().sliceViewInteractorStyle()
The problem is to fix that without breaking compatibility with Slicer < 5.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants