{
// All other stuffs
Clinical *clinical = new Clinical();
connect(this,
SIGNAL(pass_SlideID
(QString)),clinical,
SLOT(getSlideID
(QString)));
}
Personal::Personal(QWidget *parent) : QWidget(parent)
{
// All other stuffs
Clinical *clinical = new Clinical();
connect(this, SIGNAL(pass_SlideID(QString)),clinical, SLOT(getSlideID(QString)));
}
To copy to clipboard, switch view to plain text mode
You are creating an instance of "Clinical" here, but you aren't saving the pointer anywhere, so it basically becomes a phantom pointer as soon as this constructor exits, not accessible from anywhere.
If somewhere else in your code you are creating another "Clinical" instance, it is not the same one as this one, and is not connected to any signal sent by this "Personal" class instance, which means the slot for the second instance of Clinical will never be called.
Please use CODE tags when positing source code. See my signature, below.
Bookmarks