Detach SQL code of Qt code
In java language exist Hibernate. In Qt exists some equivalent? How can I separate the SQL code in Qt
Are you thinking about something like "QxOrm":http://www.qxorm.com/qxorm_en/home.html ?
I've read the description of QxOrm multiple times but I still can't understand what's the purpose of this library. Could someone explain it like I'm 12?
One of the use of it is rather than writing the code to interact with the database (table setup, queries etc.) you create object (DAO) that will do it for you behind the scene so you don't need to handle SQL at all. You can create object that can save their current state in a database and restore from it.
Hope it helps