@AnneRanch
@JonB said in How to "trigger" from check bpx...?:
However, signal QMenu::triggered(QAction *action) as you can see does not send any boolean, it sends a QAction *. And there is no QMenu::checked signal at all. OTOH, void QAction::triggered(bool checked = false) does exist, and sends a bool, so maybe you mean to be connecting signals from a QAction not a QMenu? I still do not see any QAction::checked signal though, but there is a QAction::toggled(bool checked).
That's why I wrote
@Pl45m4 said in How to "trigger" from check bpx...?:
connect(subAction[index], SIGNAL(triggered(bool))), this, SLOT(testSlot(bool));
// OR
connect(subAction[index], &QAction::triggered, this, &WHATEVER_CLASS_YOU_ARE_IN::testSlot);
but I don't know why I'm doing this... You recommend something, the advice gets ignored, bullsh*t happens with tons of errors (of course) and then getting asked what's wrong again
(╯°□°)╯︵ ┻━┻
I mean, you are not a new user anymore, but despite the fact that you don't have any programming "background", you should at least know how a (more or less) simple connection works.
We are going round in circles, since years.
Aren't you also eager to learn something and to finish your program?!
A lot of us are really patient with you and try the best they can to explain and "teach"... but it's pretty frustrating to deal with the same stuff over and over again. It's not wrong to ask these questions but...sometimes I just can't...
(often the solution is right there or just one click on a link / one documentation page away... If we refer, it's "RTFM"... which is not a bad thing)