How can I hide the "Part Design" Qmenu object below?
I tried to call hide() or setvisibility(False) .But it failed.
[Solved]How can I hide Qmenu object of the menuBar?
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: How can I hide Qmenu object of the menuBar?
Code: Select all
from PySide2 import QtWidgets
Gui.getMainWindow().findChild(QtWidgets.QMenu, '&Part Design').menuAction().setVisible(False)