I have a QVector of user defined object and the function I am passing the vector to requires vector<Object> &ObjectVector as the only parameter. Currently what I am doing is calling QVector.toStdVector() as I pass it as a reference to the function. I believe I am doing something fundamentaly wrong and it is fairly simple to fix but I just can't get it.

This is the error message: error: no matching function for call to 'SetVector(std::vector<Object, std::allocator<Object> >)'