Originally Posted by
Coder5546
I want get first 2048 byte from QString cmd to array in Utf8. Dont know how. Any suggestions?
QByteArray second2048Bytes
= array.
mid( 2048,
2048 );
QByteArray array = cmd.toUtf8();
QByteArray first2048Bytes = array.mid( 0, 2048 );
QByteArray second2048Bytes = array.mid( 2048, 2048 );
To copy to clipboard, switch view to plain text mode
Originally Posted by
Coder5546
And when i got first 2048 byte, how to take next bytes.
QByteArray second2048Bytes
= array.
mid( 2048,
2048 );
QByteArray second2048Bytes = array.mid( 2048, 2048 );
To copy to clipboard, switch view to plain text mode
Originally Posted by
Coder5546
In QFile is simple
You can alternatively put array into a QBuffer and use that like the file.
Cheers,
_
Bookmarks