I'd like to make simple invoice app.
I use SQLite for database.
I can't find similar example of MVC structured app using SQL(QsqlQuery) without ORM.
What i can't understand is how the model class should looks like?
Should be there some class named Model for instance that simply has functions which returns data with different queries?
For instance:
Model
Code:
model->setQuery("SELECT ID, Name, City, Address, Bulstat FROM partners"); return model; } QSqlQuery query; query.prepare("INSERT INTO partners ............. }