分类: C/C++
2010-11-01 22:45:02
Item { function say(text) { console.log("You said " + text); } }
==============================================
QDeclarativeEngine engine; *context = new (engine.rootContext()); component(&engine, ::fromLocalFile("main.qml")); *object = component.(context); str("Hello"); QMetaObject::invokeMethod(object, "say", Q_ARG(QVariant, str));
chinaunix网友2010-11-02 16:56:25
很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com