Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

how to return array from a function in QT

$
0
0
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); }   }

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>