Like that: QQmlApplicationEngine engine; QQmlComponent component(&engine, QUrl(QLatin1String("qrc:/main.qml"))); QObject *mainPage = component ...
確定! 回上一頁