9be00330af
This example converts to and from: - Binary JSON - CBOR - CBOR Diagnostic notation (output only) - JSON - Null (output only) - QDataStream - QVariant dump (output only) - Text - XML Change-Id: Ibab69e0efefb40bdbf94fffd150b59f8c0da3174 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
30 lines
529 B
Prolog
30 lines
529 B
Prolog
QT += core
|
|
QT -= gui
|
|
|
|
TARGET = convert
|
|
CONFIG += console
|
|
CONFIG -= app_bundle
|
|
|
|
TEMPLATE = app
|
|
|
|
# install
|
|
target.path = $$[QT_INSTALL_EXAMPLES]/corelib/serialization/convert
|
|
INSTALLS += target
|
|
|
|
SOURCES += main.cpp \
|
|
cborconverter.cpp \
|
|
jsonconverter.cpp \
|
|
datastreamconverter.cpp \
|
|
textconverter.cpp \
|
|
xmlconverter.cpp \
|
|
nullconverter.cpp
|
|
|
|
HEADERS += \
|
|
converter.h \
|
|
cborconverter.h \
|
|
jsonconverter.h \
|
|
datastreamconverter.h \
|
|
textconverter.h \
|
|
xmlconverter.h \
|
|
nullconverter.h
|