PDA

View Full Version : how can we convert QByteArray to Qstring?



learning_qt
21st July 2009, 12:29
Hello,

Is there some easy function to convert QByteArray to QString?

Lykurg
21st July 2009, 12: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, 15: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!!