Qt Connect Signal Parent Slot

See below for answer
The QT widget contains a QGLWidget as in

Traditional syntax: SIGNAL and SLOT QtCore.SIGNAL and QtCore.SLOT macros allow Python to interface with Qt signal and slot delivery mechanisms. This is the old way of using signals and slots. The example below uses the well known clicked signal from a QPushButton.The connect method has a non python-friendly syntax.

Please try to accommodate types as I cannot copy paste to here. The Qt widget works fine and I can display data in the GL widget.
When some things in the GL widget change it is to notify the parent so a display can be updated. That GL widget looks like:

  1. The separation of the user interface and backend allows us to connect C slots to the QML signals. Although it's possible to write processing functions in QML and manipulate interface items in C, it violates the principle of the separation. Therefore, you may want to know how to connect a C slot to a QML signal at first.
  2. Qt is well known for its signals and slots mechanism. But how does it work? In this blog post, we will explore the internals of QObject and QMetaObject and discover how signals and slot work under the hood. In this blog article, I show portions of Qt5 code, sometimes edited for formatting and brevity.

The best I can get is no compiler errors but a run time message:

No such slot QWidget::rcv_time_changed()

What code can be written such that a subordinate or enclosed widget can emit a signal to its enclosing widget?
I have also tried passing “this” to the subordinate, saving it as “sent_pointer” then directly calling a function with

Qt Signal Slot Example

That solicits the compile error:

Invalid use of incomplete type ‘class C_Strip_Chart’

EDIT: ANSWER
For some reason, head-up-the-buttitis, I don't know, I concluded that signals and slots should be connected from the SIGNAL perspective, the sender. I finally tried doing the connect from the SLOT perspective and it worked right away. Now to delete all those multiple variations that are cluttering up my code. :-)

Hello,

I have an application with a main widget (parentWidget). Within my main widget I create a new widget (we can call it childWidget). Within childWidget I create a new widget (call it grandchildWidget). I want to connect a signal from my grandchild to my parent widget. I tried using:

Qt Signals And Slots Tutorial

@connect(this, SIGNAL(updateGeneralStatusSignal()), this->parent()->parent(), SLOT(updateGeneralStatusSlot()));@

Qt Connect Signal Parent Slot

however, this did not work. I have been able to use this->parent() between the parent and child widget, but it wont allow me to do it between the parent and grandchild.

Qt Signal Slot Connect

Any thoughts?

Qt Connect Signal And Slot

Thanks