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
Forum Update on Monday, May 27th 2025

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 11 Feb 2014, 06:09 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 11 Feb 2014, 08:59 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
      • S Offline
        S Offline
        sql daddy
        wrote on 22 Apr 2016, 12:54 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
        • C Offline
          C Offline
          cemaldemir07
          wrote on 15 May 2016, 07:58 last edited by
          #4

          actually question is how to connect db not using tutorial.

          M 1 Reply Last reply 15 May 2016, 09:35
          0
          • C cemaldemir07
            15 May 2016, 07:58

            actually question is how to connect db not using tutorial.

            M Offline
            M Offline
            mrjj
            Lifetime Qt Champion
            wrote on 15 May 2016, 09:35 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
            • C Offline
              C Offline
              cemaldemir07
              wrote on 15 May 2016, 13:37 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 25 Aug 2023, 17:41

              • Login

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