mickey
27th July 2006, 01:44
him I've a prob.
I have;
QProgressDIalog* ppp //this in class Object
ppp = 0; //in costructor of Object
void object::setProgr(QProgressDialog* p){
ppp=p;
}
//mainForm.cpp
QProgressDIalog* prog = new QProgressDIalog();
this->setProgr (prog);
It compile but on give me runtime error...why?Ho can I do?
are there other way to pass pointer? it seems that ppp remain null...
thanks
I have;
QProgressDIalog* ppp //this in class Object
ppp = 0; //in costructor of Object
void object::setProgr(QProgressDialog* p){
ppp=p;
}
//mainForm.cpp
QProgressDIalog* prog = new QProgressDIalog();
this->setProgr (prog);
It compile but on give me runtime error...why?Ho can I do?
are there other way to pass pointer? it seems that ppp remain null...
thanks