Where should I put the connection if I want the parent widget to send data to its child? The other way round, I always declared QObject::connect in the parent code. Now, if i write the connection in the child widget this way:
QObject::connect(this->parentWidget(),SIGNAL(takeTheTitle(QString,int)),this,SLOT(gotTitle(QString,int)));
with "this" being the child widget, I receive the following output:
Cannot connect (null)::takeTheTitle(QString,int) to teamList::gotTitle(QString,int)
While
QObject::connect(this,SIGNAL(takeTheTitle(QString,int)),teams,SLOT(gotTitle(QString,int)));
with "this" being the parent widget and teams the child one, simply does nothing.
Aargh!
Snag.