Qt 5.11 | Qt Core | JSON Save Game Example | savegame.pro Example File

Qt 5.11.3 Reference Documentation

# savegame.pro Example File

serialization/savegame/savegame.pro

      QT += core
      QT -= gui

      TARGET = savegame
      CONFIG += console
      CONFIG -= app_bundle

      TEMPLATE = app

      # install
      target.path = $$[QT_INSTALL_EXAMPLES]/corelib/serialization/savegame
      INSTALLS += target

      SOURCES += main.cpp \
          character.cpp \
          game.cpp \
          level.cpp

      HEADERS += \
          character.h \
          game.h \
          level.h