Quote Originally Posted by jps3001 View Post
In which QT program did you insert this Qt code (connect)?
The connect() call can be in any code where you have access to both the sender and the receiver object.
The other two arguments are basically just strings.

Quote Originally Posted by jps3001 View Post
My concern is how to generate signals and slots between different classes.
No difference, really.

Quote Originally Posted by jps3001 View Post
I figured out that 'myClass' in your connect example is actually an object but can't find what 'myUIClass' refers to in your example, I tried MainWindow but did not work.
It refers to a different object than the one "myClass" refers to.
Both these arguments are just pointers to QObject.

Quote Originally Posted by jps3001 View Post
I wrote the connect function in the secondary class as follows:

QObject::connect(objetA, SIGNAL(SendPlot()),MainWindow, SLOT(addPlot()) );

but MainWindow is not recognized despite the following includes:
Do you have a QObject pointer variable named MainWindow?
Given its capitalization it looks awefully like the name of a class.

Cheers,
_