I am unable to hide a menu item on the menubar which was added with this code:<div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">self.menuAdmin = QtGui.QMenu(self.menubar)<br>
</blockquote><div><div><br></div><div>The two obvious ways of doing this...</div><div><br></div><div><div> self.ui.menuAdmin.setVisible(0)</div><div> self.ui.menuAdmin.hide()</div><div><br></div><div>
...don't work. </div><div><br></div><div>I am able to clear the items using .clear(). However that still leaves the title on the menubar even though all the actions are removed. </div><div><br></div><div>I can also disable it using .setEnabled(0), but again it's still visible. I'd like to remove it complete so that the admin area doesn't show up at all.</div>
<div><br></div><div>I'm using PyQt4 with Python2.6. Does anyone know if this is a problem, or another way to hide the menubar item?</div><div><br></div><div>Thanks,</div><div>Marc</div></div></div>