How to connect MongoDB with Qt
-
wrote on 11 Feb 2014, 06:09 last edited by
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......
-
wrote on 11 Feb 2014, 08:59 last edited by
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 -
wrote on 22 Apr 2016, 12:54 last edited by
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/ -
wrote on 15 May 2016, 07:58 last edited by
actually question is how to connect db not using tutorial.
-
actually question is how to connect db not using tutorial.
@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/masterseems perfect place to start. (even if old)
-
wrote on 15 May 2016, 13:37 last edited by
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
- obtaining libbson for C Driver ( i can't compiled on windows 7 Mingw )
- obtaining C driver for C++ driver ( no good tutorial or note for mingw32 )
- obtaining boost ( python does not locate the Boost despite i said to way )
- ....
i can not remember the rest.
THIS IS MY ERROR and Any Solution for me
finally i stop my project.
-