Is there a shorter way to initialize a QByteArray?

QByteArray ba =QByteArray::fromHex(QVariant("B1B2FFEEEE00").toByteArray());

References:

Is there a shorter way to initialize a QByteArray? https://stackoverflow.com/questions/36327327/is-there-a-shorter-way-to-initialize-a-qbytearray

results matching ""

    No results matching ""