First off, I don't think QtSql is going to recognize a Sqlite database named :memory - where is this defined? It needs to be like myDB.sqlite Have you checked to see if the database is actually being created? With another tool maybe. How about a qDebug to see if the database is open? Also, I don't see where you have populated your model with a model->select();