[Development] Serialising UI state in QML via QSettings and JSON: QByteArray vs QString

J-P Nurmi jpnurmi at gmail.com
Tue Oct 30 14:48:45 CET 2018


On Mon, Oct 29, 2018 at 5:42 PM Mitch Curtis <mitch.curtis at qt.io> wrote:
> I thought that I could get around this by using Qt.atob() and Qt.btoa() in QML to convert the byte array into a Base64 QString, but it turns out that those functions expect a string:
>
> http://code.qt.io/cgit/qt/qtdeclarative.git/tree/src/qml/qml/v8/qqmlbuiltinfunctions.cpp?h=5.12&id=475c74a9926efcd968572563e678988e53804603#n996

Hi Mitch,

So Qt.atob() and Qt.btoa() are not doing what they claim to do? Would
it be feasible to fix them?

--
J-P Nurmi



More information about the Development mailing list