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 connect MongoDB with Qt

How to connect MongoDB with Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 5 Posters 21.1k 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.
  • N Offline
    N Offline
    Neethu
    wrote on last edited by
    #1

    How to connect MongoDB with C++ Qt programming? Any plugin is used for this purpose?Otherwise what are the steps for connecting MongoDB with Qt? Any help plz......

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MrMNight
      wrote on last edited by
      #2

      Did you try google your question?
      I didn't work with mongo in cpp, but i think you can compile mongoDB driver for your platform using this: "mongodb driver cpp":http://docs.mongodb.org/ecosystem/drivers/cpp/ and use this in your qt project. I think you don't need actually any QSqlQuery like qt-objects, because mongoDB is NOSQL DB, so you can simply use cpp objects and methods in your qt project.
      You can find example here: "example using mongo with Qt in github":https://github.com/rurounijones/asnme/tree/master

      1 Reply Last reply
      0
      • sql daddyS Offline
        sql daddyS Offline
        sql daddy
        wrote on last edited by
        #3

        Hello

        There is possible resources that will help for mongo db connect with c++ and QT Just visit
        https://zappysys.com/blog/ssis-loading-data-into-mongodb-upsert-update-delete-insert/

        1 Reply Last reply
        0
        • cemaldemir07C Offline
          cemaldemir07C Offline
          cemaldemir07
          wrote on last edited by
          #4

          actually question is how to connect db not using tutorial.

          mrjjM 1 Reply Last reply
          0
          • cemaldemir07C cemaldemir07

            actually question is how to connect db not using tutorial.

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

            @cemaldemir07
            "actually question is how to connect db not using tutorial"
            Hi
            But you must read the tutorials to get the info needed to
            connect to the db. mongo db is not directly supported and
            reading docs is required to use it. :)
            Also
            "example using mongo with Qt in github":https://github.com/rurounijones/asnme/tree/master

            seems perfect place to start. (even if old)

            1 Reply Last reply
            0
            • cemaldemir07C Offline
              cemaldemir07C Offline
              cemaldemir07
              wrote on last edited by
              #6

              link text

              I don't need this. I am using Qt with MinGW not msvc or other version, thus Qt uses MinGW 32 and for my side if i start with mondb with Qt Application, first time My Application need to Connection driver to db and real issue is staring here

              1. obtaining libbson for C Driver ( i can't compiled on windows 7 Mingw )
              2. obtaining C driver for C++ driver ( no good tutorial or note for mingw32 )
              3. obtaining boost ( python does not locate the Boost despite i said to way )
              4. ....

              i can not remember the rest.

              THIS IS MY ERROR and Any Solution for me

              finally i stop my project.

              1 Reply Last reply
              0
              • O orsini29 referenced this topic on

              • Login

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