Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将一些 C++ 类型注册到一个QScxmlStateMachine带有 ecmascript 数据模型的实例中。我阅读了 scxml 的源代码,发现为了访问底层的 QJSEngine 实例,我必须使用类的assertEngine()成员函数QScxmlEcmaScriptDataModelPrivate。如何调用assertEngine()?如果这不可能,我如何将 C++ 函数注册到 QScxmlStateMachine?我以前的尝试是在这里。
QScxmlStateMachine
assertEngine()
QScxmlEcmaScriptDataModelPrivate