The preferred idiom here is:

    dst = src;
    for (int i = 0; i < nlandmarks; i++)
        dst.file.appendLandmark(QPointF(landmarks[2 * i], landmarks[2 * i + 1]));

Unless there's a reason to make a deep copy (hopefully there isn't).