The error is pretty clear I think. QWidget doesn't have a member called newAction (be it a function or a variable).
You can declare a new signal for your parent that you relay to the child:
in the parent:
connect(newAction, SIGNAL(triggered()), this, SIGNAL(newActionTriggered()));
connect(newAction, SIGNAL(triggered()), this, SIGNAL(newActionTriggered()));
To copy to clipboard, switch view to plain text mode
and then in the intermediate:
connect(parent(), SIGNAL(newActionTriggered()), child, SLOT(foo()));
connect(parent(), SIGNAL(newActionTriggered()), child, SLOT(foo()));
To copy to clipboard, switch view to plain text mode
If you have a clear shot at the child widget from the parent, you could do:
connect(newAction, SIGNAL(triggered()), intermediate->child, SLOT(foo()));
connect(newAction, SIGNAL(triggered()), intermediate->child, SLOT(foo()));
To copy to clipboard, switch view to plain text mode
Edit: typo.
Bookmarks