Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to create Json file in qt ?
Forum Updated to NodeBB v4.3 + New Features

How to create Json file in qt ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 495 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by
    #1

    I have to create json file if not exist and if exist then after reading content. i have to update that content of json file. so can anybody guide me how to do this. if possible please provide example.

    jsulmJ 1 Reply Last reply
    0
    • Q Qt embedded developer

      I have to create json file if not exist and if exist then after reading content. i have to update that content of json file. so can anybody guide me how to do this. if possible please provide example.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Qt-embedded-developer https://doc.qt.io/qt-6/json.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      Q 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Qt-embedded-developer https://doc.qt.io/qt-6/json.html

        Q Offline
        Q Offline
        Qt embedded developer
        wrote on last edited by
        #3

        @jsulm Hi i am using below version of qt :

        Qt Creator 5.0.3
        Based on Qt 5.15.2 (GCC 7.3.1 20180303 (Red Hat 7.3.1-5), 64 bit)

        Built on Nov 3 2021 10:57:06

        is it okay to refer this document for my version of qt because may be i need to write code in c++ ?

        jsulmJ 1 Reply Last reply
        0
        • Q Qt embedded developer

          @jsulm Hi i am using below version of qt :

          Qt Creator 5.0.3
          Based on Qt 5.15.2 (GCC 7.3.1 20180303 (Red Hat 7.3.1-5), 64 bit)

          Built on Nov 3 2021 10:57:06

          is it okay to refer this document for my version of qt because may be i need to write code in c++ ?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Qt-embedded-developer said in How to create Json file in qt ?:

          i am using below version of qt

          This is Qt version used to build QtCreator!

          "is it okay to refer this document for my version of qt because may be i need to write code in c++ ?" - you can change 6 to 5 in the link I gave you. If you scroll down there you will see a list of C++ classes.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          Q 1 Reply Last reply
          2
          • jsulmJ jsulm

            @Qt-embedded-developer said in How to create Json file in qt ?:

            i am using below version of qt

            This is Qt version used to build QtCreator!

            "is it okay to refer this document for my version of qt because may be i need to write code in c++ ?" - you can change 6 to 5 in the link I gave you. If you scroll down there you will see a list of C++ classes.

            Q Offline
            Q Offline
            Qt embedded developer
            wrote on last edited by Qt embedded developer
            #5
            This post is deleted!
            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved