I would suggest you take a look at QDjango ORM , this may be exactly what you are looking for. This C ++ ORM depends only on Qt and is based on the Qt Meta-Object System to provide introspection. In addition to the basic create / update / delete operations at the model level, it provides a request template class (modeled after django requests) that allows you to build fairly complex queries.
Additional QtScript support is also provided, so you can access your models and query the database from scripts.
source
share