[Qt-interest] How to hide an "easter egg" QMenu ?
Christopher Probst
cprobst at ics.com
Thu Jun 10 16:17:02 CEST 2010
On 06/09/2010 01:13 PM, Ed Sutton wrote:
> Thank you! I confirm it works on Mac and Red Hat Enterprise Linux 5.2. I created the menu normally in Qt Creator UI designer then conditionally removed or added the menu action from the menuBar as your example above clearly demonstrated.
>
> Thank you very much for your patience and taking the time to create a sample application!
>
> -Ed
>
>
You're welcome. Just a quick and small note: instead of using the
variable ui->menuBar whose name is set in Qt-Creator UI-designer, I
think you're better off using the method QMainWindow::menubar().
Thanks,
Christopher
More information about the Qt-interest-old
mailing list