Abeer
24th May 2010, 16:04
Hi everyone...
I have variable from type: integer
its name for example num , I defined it in dialog1.h
I stored value in it from user by lineEdit
when user enter value, I change it to int and then store in num variable..
now I need to use this variable in another file
so, I must use it in dialog2.cpp file
I called it like this:
dialog1::num but it doesn't work!
then I did that:
dialog1* d=new dialog1(this);
d->num;
but also it doesn't work!
please can anyone help me?!
I don't have enough time..
I must finish my project today:(
I have variable from type: integer
its name for example num , I defined it in dialog1.h
I stored value in it from user by lineEdit
when user enter value, I change it to int and then store in num variable..
now I need to use this variable in another file
so, I must use it in dialog2.cpp file
I called it like this:
dialog1::num but it doesn't work!
then I did that:
dialog1* d=new dialog1(this);
d->num;
but also it doesn't work!
please can anyone help me?!
I don't have enough time..
I must finish my project today:(