[Interest] Simple sqlite database

Konstantin Podsvirov konstantin at podsvirov.pro
Mon Jun 15 18:22:28 CEST 2015



15.06.2015, 18:33, "Graham Labdon" <Graham.Labdon at avalonsciences.com>:
> Hi
> I am trying to open a sqlite database and display it in a QTableView but it is not working.
> Here is my code

Try replace this:

>                 m_model = new QSqlTableModel;

With this:

                  m_model = new QSqlTableModel(this, m_qsqlDatabase);

Regards,
Konstantin Podsvirov



More information about the Interest mailing list