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>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;self.ui.menuAdmin.setVisible(0)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;self.ui.menuAdmin.hide()</div><div><br></div><div>
...don&#39;t work.&nbsp;</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.&nbsp;</div><div><br></div><div>I can also disable it using .setEnabled(0), but again it&#39;s still visible. I&#39;d like to remove it complete so that the admin area doesn&#39;t show up at all.</div>
<div><br></div><div>I&#39;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>