I'm trying to do something like this:
But this is the error I get (pointing to rootObject):Code:QSqlTableModel *model = new QSqlTableModel; model->setTable(table); model->select(); rootObject->setProperty("myModel", model);
I'm using QmlApplicationViewer and other than this it works. I can set property to other things just fine. It's only with QSqlTableModel I have a problem.'QVariant::QVariant(void*)' is private
within this context
Any ideas what I'm doing wrong or missing?
Cheers![]()




