我花了3天仔细检查最好的reference我可以在互联网上找到有关Q_RETURN_ARG的资料。我已经包含了QQmlComponent.在C++上使用它发送变量以在QML上显示时,事情并不总是像看起来那样。可能因为Qt5相对较新,所以我们可以依赖的Material还不多。基本上,代码编译没有问题。当我要求它运行时,它毫无问题地将qml页面呈现给设备,然后出现错误:QQmlComponent:Componentisnotreadymain.cpp:33(intmain(int,char**)):GotQMLreturn:""除了文件invoke.pro和myapplication.cp