Signals are only accesible through menu bar sub-menu, I am creating little program and I can't do one-click "About" button on Menu Bar without sub-menus.
Where problem could be?
It is working:
void MainWindowImpl::on_actionCh_triggered()
{
qDebug("just for test...");
}
void MainWindowImpl::on_actionCh_triggered()
{
qDebug("just for test...");
}
To copy to clipboard, switch view to plain text mode
Non-working:
void MainWindowImpl::on_menuChh_triggered()
{
qDebug("just for test...");
}
void MainWindowImpl::on_menuChh_triggered()
{
qDebug("just for test...");
}
To copy to clipboard, switch view to plain text mode
QAction inherits QMenu, and triggered signal exists for both classes.
Bookmarks