Hello,
I want to return an array from a function using QT but i can not do it for some reason. I used to do it by ref, passing &array0 to the function in C++ but it seems i need to use qpointer
is this correct?
ex:
int x=1;
QPointer <int> op;
test(x,op);
void test(int ip, QPointer <int> op)
{
for (int i=0; i<=10; i++)
{
op.append(i*ip);
}
}
↧