setData() copies the arrys, setRawData() stores the pointer to your array only. Of course then you can't delete the arrays without clearing the curve object before.

If possible I recommend to use a Qt container instead of the double arrays. Then you don't need to take care about pointless copies or bad references.

Uwe