I tried to use QQmlComponent component(view.engine(), QUrl::fromLocalFile("MyItem.qml")); and then QOObject *object = component.create(); but it gives me ...
確定! 回上一頁