I have tried passing the pointcloud object as a pointer and a reference and i couldn't get either to work.

would it be best to pass just the points vector?

The QGLWidget shouldn't alter the points data, just display it. i have read that a const vector by reference should be used, but i am a little out of my depth here.

Thanks for any tips,

Dubstar_04