allAssignMenu_->addMenu(menu);
QAction* action = menu->menuAction();
connect(action,SIGNAL(triggered()),this,SLOT(onTri ggered()));
the slot onTriggered() won't be executed anyway,,
allAssignMenu_->addMenu(menu);
QAction* action = menu->menuAction();
connect(action,SIGNAL(triggered()),this,SLOT(onTri ggered()));
the slot onTriggered() won't be executed anyway,,
the signal is triggered(bool) .. its having an argument bool ... just change it to
connect(action,SIGNAL(triggered(bool)),this,SLOT(o nTri ggered()));
if it not works .. in run time it will display some connect error ... just post that error ...
"Behind every great fortune lies a crime" - Balzac
no,it don't work,,,!!!
connect(action,SIGNAL(triggered(bool)),this,SLOT(o nTri ggered(bool)));
the QAction is menuAction :
QAction* action = menu->menuAction();
not the action like that:
QAction* action = new QAction;
This is not a useful description of the problem and what you have done to try and track down the cause.no,it don't work,,,!!!
Wagmare means the debug output or console window will probably contain a warning message about bad connections. Have you looked?Originally Posted by wagmare
If there is no warning then check the lifetime of the objects at each end of the connection. If either object is destroyed then the connect is lost.
Bookmarks