Hi, I've created a method which is accept parameter by reference like following :
void Func1(QList<int> *a){
(*a) << getDataFromAnotherFunction();
//or
(*a).append(getDataFromAnotherFunction());
}
QList<int> getDataFromAnotherFunction(){
//we will do something good over here
return QList<int>
}
but the problme is when I want to use the a's data there is no data in it. and it says 0; say I want to count the element in it like following :
//for passing a to func1 I use something like that
//QList a;
//func(&a);
//after retruning from func1 now I want to use the result like below :
a.size();
//but the answer is 0
how should I pass my parameter to get the correct data?
regards.