Any idea how to add an QAction into mac menubar ? Mac has default first menu named as name of the application, it appears on menubar as first on left. I want to add an action there but the code below seems not working.

Qt Code:
  1. QAction *b1 = new QAction(tr("Check for Updates"), this);
  2. _ui->menubar->addAction(b1);
  3. connect(b1, SIGNAL(triggered()), this, SLOT(checkForUpdates()));
To copy to clipboard, switch view to plain text mode 

I have created default mainwindow.ui form.

Any ideas ?

Thanks for help.