Not truncate, but mid: Qt Code: Switch view QString s;s = QString::fromLatin1(byte_array.mid(10, 5)); QString s; s = QString::fromLatin1(byte_array.mid(10, 5)); To copy to clipboard, switch view to plain text mode The QByteArray doc is a great place to look for answers
QString s;s = QString::fromLatin1(byte_array.mid(10, 5));
QString s; s = QString::fromLatin1(byte_array.mid(10, 5));
!sirius
elcuco (4th November 2010)
Forum Rules
Bookmarks