How to connect MongoDB with Qt
-
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 -
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/ -
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)
-
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.
-