I have a "Recent files" file menu as QMenu, like: File-->Recent files. In that I create dynamically several QActions with the recently opened files listed. That works.
But I want to trigger a seperate SLOT when I click on that Recent files QMenu.
connect(ui->menuRecently_Open, SIGNAL(triggered(QAction*)), this, SLOT(onRecentOpenFiles(QAction*)));
and a TRIGGER debug message should printed out
void MainWindow::onRecentOpenFiles(QAction* action)
{
qDebug() << "TRIGGER";
}
But nothing happens ?