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. Regarding MongoDB with Qt

Regarding MongoDB with Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 7.8k Views 2 Watching
  • 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.
  • Venkatesh VV Offline
    Venkatesh VV Offline
    Venkatesh V
    wrote on last edited by
    #1

    Hi,

    I wanted to work with mongodb, i dont know how to use with Qt please help me with some example programs if you have worked with this.

    Thanks

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      You should tell Qt version and platform.

      Did you install mongodb driver etc?`

      Update:
      https://github.com/rurounijones/asnme/tree/master/src

      Might be able to see some code there.

      Also
      http://grokbase.com/t/gg/mongodb-user/142das0sca/how-to-connect-mongodb-with-c-qt-programming

      1 Reply Last reply
      4
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        If you find a good tutorial , please come back and link it here.
        All i can find is very old and not very clear.

        1 Reply Last reply
        2
        • Venkatesh VV Offline
          Venkatesh VV Offline
          Venkatesh V
          wrote on last edited by
          #4

          Hi @mrjj ..

          Thanks for your reply
          i am using Qt 5.7 version and Linux platform, can you please tell me what are all the steps i need to follow to work with mongodb...
          I have not installed any driver... please suggest me all steps form beginning...

          Thanks.

          mrjjM 1 Reply Last reply
          1
          • Venkatesh VV Venkatesh V

            Hi @mrjj ..

            Thanks for your reply
            i am using Qt 5.7 version and Linux platform, can you please tell me what are all the steps i need to follow to work with mongodb...
            I have not installed any driver... please suggest me all steps form beginning...

            Thanks.

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

            @Venkatesh-V

            Hi
            Sadly there seems not to exists any step by step.
            It is a pure c++ interface and it will not be super easy to use from Qt.
            Its not directly supported. It must be mondodb ? mysql wont do ?

            You will need to use the MongoDB C++ driver within your Qt application. You
            can find instructions on how to download, build, and use the MongoDB

            C++Driver here: http://docs.mongodb.org/ecosystem/drivers/cpp/

            Then i would check out
            https://mongodb.github.io/mongo-cxx-driver/mongocxx-v3/tutorial/

            Be prepared to spend some time reading the docs.

            Also its a server. So it has its demon running and such things to work. I assume you will only
            program the client and the server is already running ?

            1 Reply Last reply
            2
            • Q Offline
              Q Offline
              qxorm
              wrote on last edited by
              #6

              Hello,
              I know this is an old topic but if it can help some people : QxOrm library now supports MongoDB database.
              Here is a link to the documentation : https://www.qxorm.com/qxorm_en/manual.html#manual_95

              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