void api_request::parse_read_alldata()
{
.......
emit receiving_finished();
}//this is the classA function where i am emitting the signal
connect(classA_object,SIGNAL(receiving_finished()), classB_object, SLOT(write_data()));
//This is present in the mainclass's constructor which has a instance of classB_object but no classA instance.
void write_data()
{
qDebug() << "in write data";
}//this is the actual function that needs to be called and is present in classB.
void api_request::parse_read_alldata()
{
.......
emit receiving_finished();
}//this is the classA function where i am emitting the signal
connect(classA_object,SIGNAL(receiving_finished()), classB_object, SLOT(write_data()));
//This is present in the mainclass's constructor which has a instance of classB_object but no classA instance.
void write_data()
{
qDebug() << "in write data";
}//this is the actual function that needs to be called and is present in classB.
To copy to clipboard, switch view to plain text mode
Bookmarks