Hi,
I'm new to QT and C++. Here is my situation.
For any help, Thanks in Advance.

void Clinical::getSlideID(QString slide_ID) // This is the function which i got value from another class using pass by value
{
//slide_idValue is a global variable declared under public.

slide_idValue = slide_ID;
qDebug()<<"Expected Value is ::"<<slide_idValue; // Here i got the value of slide_Id from my different class.

}

I want the same value of above " slide_idValue" inside the below function, in the same class itself

void Clinical::Clinical_savetodb()
{
slide_idValue;
qDebug()<<"Expected Value is ::"<<slide_idValue; // Here I am getting null value ......
}