View Full Version : how can convert QFile to QBuffer?
learning_qt
16th November 2009, 13:02
Hello,
Is there an easy way to convert QFile to QBuffer?
high_flyer
16th November 2009, 13:06
You don't need to convert it.
Just use it as you would QFile.
learning_qt
16th November 2009, 13:10
But I hope to put the data into QBuffer.
high_flyer
16th November 2009, 13:34
You can just read from the QFile in to a QByteArray, and then pass that QByteArray to your QBuffer.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.