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

Thiago Macieira thiago.macieira at intel.com
Tue Oct 30 17:24:48 CET 2018


On Tuesday, 30 October 2018 06:13:54 PDT Mitch Curtis wrote:
> Since QCborValue also uses the Base64 string approach and it what is what I
> was planning on doing if no other solution came up, I think I will just go
> ahead and return a Base64 QString from QQuickSplitView::saveState() instead
> of a QVariant containing a QByteArray. I will use the CBOR stuff to
> serialise it though, as it's much nicer than using QDataStream.

Sounds like a good plan!

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center






More information about the Development mailing list