I tried to use the example provided in the FAQ to update my database schema based on the persistent classes registered in the context.
My application crashes when this line is executed in the updateDatabaseVersion() function:
- Code: Select all
qx::QxCollection<QString, qx::IxClass *> * pAllClasses = qx::QxClassX::getAllClasses();
I debugged a little and what is making it crash is the assert in the registerAllClasses() function:
- Code: Select all
while (itr.hasNext())
{
itr.next();
IxClass * pClass = QxClassX::getClass(itr.key());
qAssert(pClass != NULL); Q_UNUSED(pClass); // <--- this line
}
Apparently the classes are not registered correctly, or maybe I forgot to do something (application is working just fine though, I just have problems with introspection).
What could be the problem?
Thanks.