[quote author="jstaniek" date="1336511641"]Hi,
Have a look at Predicate lib which has SQLite3 plugin: http://community.kde.org/Predicate
It's Qt-only, LGPL, and unlike QtSQL it 'knows' how to create database and then new tables (has a Qt/C++ API for that). No need to pass SQL at all (but it can be if you wish). I am preparing this lib as a next get backend for Kexi and similar complex apps.
The only downside - it's not yet released and its API isn't frozen, so you'd need a copy of it.[/quote]
Thanks, this sounds like exactly what I have been looking for. Unfortunatly I'd prefer to avoid any dependencies (except Qt itself) as much as possible. I just hoped that there simply is a qt-api for my case that I simply couldn't find.
I will accept that there is no api by qt, so I will do it by hand with SQL-commands.
[quote author="Rahul Das" date="1336509988"]You might want to go through the "MVP":http://qt-project.org/doc/qt-4.8/model-view-programming.html as well.[/quote]
I don't know what for since it doesn't have to do with my "problem".