Hi,
How can I connect to more than one database in single thread ?
Each functions of
qx::dao namespace have an optional parameter :
QSqlDatabase * pDatabase = NULL.
NULL value means that the connection to database is managed by QxOrm library.
Using this parameter (so without
NULL value), you can connect to multiple databases.
So you can create an instance of
QSqlDatabase type and pass it to all
qx::dao functions...
For more details about
QSqlDatabase class, goto the documentation of Qt :
http://doc-snapshot.qt-project.org/4.8/ ... abase.htmlAnd for more details about
qx::dao namespace, goto here :
http://www.qxorm.com/doxygen/html/names ... _1dao.html