How to Convert QBuffer to QString

Posted on Posted in Qt Tutorials, Tutorials

You can convert QBuffer to QString using buffer function of the QBuffer. Here is how you can do it.

QBuffer b;;
QString str = b.buffer();
qDebug() << str; // “”

Leave a Reply

Your email address will not be published. Required fields are marked *