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 integrate Qjson in qt window application, windows 64 bit system ?

how to integrate Qjson in qt window application, windows 64 bit system ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 6 Posters 2.9k 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.
  • R Offline
    R Offline
    rajeshgoswami2025
    wrote on last edited by
    #1

    how to integrate Qjson in qt window application, windows 64 bit system ?

    downloaded qjson-0.8.1 and tried to compile it using cmake-3.8.1-win64-x64 but not succeed getting

    CMake Error at C:/Program Files/CMAKE_3_8/share/cmake-3.8/Modules/FindQt4.cmake:1318 (message):
    Found unsuitable Qt version "5.8.0" from
    C:/Qt/5.8/mingw53_32/bin/qmake.exe, this code requires Qt 4.x
    Call Stack (most recent call first):
    CMakeLists.txt:35 (FIND_PACKAGE)
    error please help

    mrjjM 1 Reply Last reply
    0
    • R rajeshgoswami2025

      how to integrate Qjson in qt window application, windows 64 bit system ?

      downloaded qjson-0.8.1 and tried to compile it using cmake-3.8.1-win64-x64 but not succeed getting

      CMake Error at C:/Program Files/CMAKE_3_8/share/cmake-3.8/Modules/FindQt4.cmake:1318 (message):
      Found unsuitable Qt version "5.8.0" from
      C:/Qt/5.8/mingw53_32/bin/qmake.exe, this code requires Qt 4.x
      Call Stack (most recent call first):
      CMakeLists.txt:35 (FIND_PACKAGE)
      error please help

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      hi
      That lib seems a bit dated.

      Why not use the build in , ready to use json that are in Qt already ?
      http://doc.qt.io/qt-5/json.html

      1 Reply Last reply
      3
      • R Offline
        R Offline
        rajeshgoswami2025
        wrote on last edited by
        #3

        hey @mrjj thanks for reply can you tell me how to implement qt own's json and how to use that ?

        and documentation would help more

        mrjjM 1 Reply Last reply
        0
        • R rajeshgoswami2025

          hey @mrjj thanks for reply can you tell me how to implement qt own's json and how to use that ?

          and documentation would help more

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @rajeshgoswami2025

          Hi
          Look at the game sample
          http://doc.qt.io/qt-5/qtcore-json-savegame-example.html

          Its a real life example of saving / loading.

          1 Reply Last reply
          4
          • uniqueidentifierU Offline
            uniqueidentifierU Offline
            uniqueidentifier
            wrote on last edited by uniqueidentifier
            #5

            Hello,

            I can also recommend my brothers JSON library; JsonWax ( https://doublejim.github.io )

            You just have to include one header file, and it features build-in save/load, very easy read/update of values, and serialization. He has done a ton of tests, and it is ready for use.

            It has been tested with Qt 5.7.1 on Linux with GCC 5.4, and with Qt 5.8.0 on Windows 7 64 bit - both MingW and MSVC compiler.

            There are decent documentation, but some things still could use a better explanation in my opinion.
            The documentation has been updated, and is now in great shape :-) Take a look at the "Getting started" section.

            R Gabriela20G 2 Replies Last reply
            0
            • uniqueidentifierU uniqueidentifier

              Hello,

              I can also recommend my brothers JSON library; JsonWax ( https://doublejim.github.io )

              You just have to include one header file, and it features build-in save/load, very easy read/update of values, and serialization. He has done a ton of tests, and it is ready for use.

              It has been tested with Qt 5.7.1 on Linux with GCC 5.4, and with Qt 5.8.0 on Windows 7 64 bit - both MingW and MSVC compiler.

              There are decent documentation, but some things still could use a better explanation in my opinion.
              The documentation has been updated, and is now in great shape :-) Take a look at the "Getting started" section.

              R Offline
              R Offline
              rajeshgoswami2025
              wrote on last edited by
              #6

              @uniqueidentifier thanks for recommandation i will sure look into it .

              uniqueidentifierU 1 Reply Last reply
              0
              • R rajeshgoswami2025

                @uniqueidentifier thanks for recommandation i will sure look into it .

                uniqueidentifierU Offline
                uniqueidentifierU Offline
                uniqueidentifier
                wrote on last edited by
                #7

                @rajeshgoswami2025

                You are welcome :-)

                Let me know if you have any troubles using it, or questions about it.

                I have used it almost everyday lately - and it has been such a pleasure, since I really understood how to use it.

                1 Reply Last reply
                1
                • uniqueidentifierU uniqueidentifier

                  Hello,

                  I can also recommend my brothers JSON library; JsonWax ( https://doublejim.github.io )

                  You just have to include one header file, and it features build-in save/load, very easy read/update of values, and serialization. He has done a ton of tests, and it is ready for use.

                  It has been tested with Qt 5.7.1 on Linux with GCC 5.4, and with Qt 5.8.0 on Windows 7 64 bit - both MingW and MSVC compiler.

                  There are decent documentation, but some things still could use a better explanation in my opinion.
                  The documentation has been updated, and is now in great shape :-) Take a look at the "Getting started" section.

                  Gabriela20G Offline
                  Gabriela20G Offline
                  Gabriela20
                  wrote on last edited by
                  #8

                  @uniqueidentifier Hello could you help me regarding that library. I just started using it, it is very good, the problem is that the json sorts it alphabetically and that causes me problems. Know how not to order it alphabetically?

                  JonBJ 1 Reply Last reply
                  0
                  • Christian EhrlicherC Online
                    Christian EhrlicherC Online
                    Christian Ehrlicher
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @Gabriela20 said in how to integrate Qjson in qt window application, windows 64 bit system ?:

                    Know how not to order it alphabetically?

                    Since json has no order - no.

                    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                    Visit the Qt Academy at https://academy.qt.io/catalog

                    Gabriela20G 1 Reply Last reply
                    1
                    • Christian EhrlicherC Christian Ehrlicher

                      @Gabriela20 said in how to integrate Qjson in qt window application, windows 64 bit system ?:

                      Know how not to order it alphabetically?

                      Since json has no order - no.

                      Gabriela20G Offline
                      Gabriela20G Offline
                      Gabriela20
                      wrote on last edited by
                      #10

                      @Christian-Ehrlicher I did not formulate my question correctly hehe the user mentioned, I am talking about another jsonwax tool, I was referring to that library

                      1 Reply Last reply
                      0
                      • Gabriela20G Gabriela20

                        @uniqueidentifier Hello could you help me regarding that library. I just started using it, it is very good, the problem is that the json sorts it alphabetically and that causes me problems. Know how not to order it alphabetically?

                        JonBJ Offline
                        JonBJ Offline
                        JonB
                        wrote on last edited by
                        #11

                        @Gabriela20 said in how to integrate Qjson in qt window application, windows 64 bit system ?:

                        the problem is that the json sorts it alphabetically and that causes me problems

                        We don't know about your "JsonWax" library, that's for you to look up. But as @Christian-Ehrlicher has said JSON itself is "unordered" when serializing to string. The point anyway is that you should not "have problems" regardless of the order.

                        1 Reply Last reply
                        1

                        • Login

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