When creating table at run time using qsqlquery the fields of the sqlite database table are declared by user, and using that I want to create a table at run time.
How can I do that in qsql cpp?
qsqlQuery qry;
qry.exec("CREATE TABLE xyz ....."); // ???
Is there a way to create database Table using models like qsqlTableModel?
A code from my project. Just copied and pasted as is, but I think it should be enough for you to understand how to achieve your goal.