How can I quickly copy part of data between QByteArray?

  • I can write this code:

    for(int Index = 0; Index < CountCopyData; ++Index)

    But I think, that isn't quickly way.

  • Qt Champions 2016

    Without any types to see its hard to say anything :)

    I assume its strings. and yes, it will copy to ArrayReceiver.

    But unless u have really many, it might not be an issue.

    Also, without any hints to what you are trying, design and goals its hard to suggest anything :)

  • Moderators

    ArrayReceiver.append(ArraySender.constData(), CountCopyData);

  • @Chris-Kawa
    Thank You!

Log in to reply