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.
_ui->menubar->addAction(b1);
connect(b1, SIGNAL(triggered()), this, SLOT(checkForUpdates()));
QAction *b1 = new QAction(tr("Check for Updates"), this);
_ui->menubar->addAction(b1);
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.
Bookmarks