how to split QByteArray whit multi char
-
Hi
you can try to convert it to a QString and use its spit that
takes a string and not char as sep. -
@ARASHz4
There is no "multi-char split" for aQByteArray. One of:-
Convert to
QStringandsplitif you can safely treat it as a string. -
Use one of the overloads of
QByteArray::indexOf()in a loop to implement your own "split" (which ultimately is doubtless the codesplit()uses anyway).
-