Hi friends,

I'm a beginner to Qt and in the current application that I'm developin on Linux,I have encounterd problem in using global variables.
I ve a main.cpp,that has a declaration as follows,
QString var;
int main()
{
.....
.....
qDebug(var);
}//end main
In another file-BList.ui.h,I am using the 'var' variable and assigning it a value in one of its member fns.Part of the code is as follows,
extern QString var;
void BList::itemDoubleClicked()
{
.....
var = "BUDDY";
}//end fn
When I run the project,the value of 'var',it is displayed as nothing...May I know what the problem is???
Any help would be appreciated...

Thanx & Rgards,
Kavitha