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