From: Thiago Macieira <thi...@kde.org>
Subject: Re: [Interest] QString to QByteArray conversion
To: interest@qt-project.org
Message-ID: <1359916.pguQgTLvcx@tjmaciei-mobl2>
Content-Type: text/plain; charset="iso-8859-1"

>> i have a QString like "81FF25" and i want to convert it into a 
>> QByteArrya containing bytes 81 FF 25.
>> I can i do that?
>
>QByteArray data = QByteArray::fromHex(string.toLatin1());

LOL, so easy!  And to think that some people blame Qt for being "bloated"!
I say, "Bring on the bloat!"  :-)

-- David


_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to