How to connect MongoDB with Qt
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......
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
There is possible resources that will help for mongo db connect with c++ and QT Just visit
actually question is how to connect db not using tutorial.
"actually question is how to connect db not using tutorial"
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. :)
"example using mongo with Qt in github":https://github.com/rurounijones/asnme/tree/master
seems 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.
finally i stop my project.