apparrilla
(Angel R Piñera)
1
I want to disable this mouse right-click qAction:
I´ve tried:
pluginHandler = slicer.qSlicerSubjectHierarchyPluginHandler.instance()
pluginLogic = pluginHandler.pluginLogic()
pluginLogic.allowedViewContextMenuActionNames =
It doesn´t work for me.
Thanks in advance!!!
lassoan
(Andras Lasso)
2
This is a standard Qt main window feature. You may search/ask on Qt forums about how to customize it, for example here.
1 Like
apparrilla
(Angel R Piñera)
3
This works for me…
slicer.util.mainWindow().setContextMenuPolicy(qt.Qt.NoContextMenu)
Thanks @lassoan
1 Like