How to copy QByteArray to another QByteArray with specified size?