View Full Version : how can we convert QByteArray to Qstring?
learning_qt
21st July 2009, 11:29
Hello,
Is there some easy function to convert QByteArray to QString?
Lykurg
21st July 2009, 11:38
Do you know the documentation of Qt? What's so hard to look in it:
QString & operator= ( const QByteArray & ba )
nish
21st July 2009, 14:05
if u still did not looked at the doc... its done like this..
QByteArray ba= "aaa";
QString s= ba;//Voila!! u have just converted it!!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.