Я пытаюсь создать простое веб-приложение Ubuntu Touch с Qt Creator. Я создал новый проект в соответствии с руководством и отправил файлы на Bazaar. Я установил URL вместо стандартного index.htm в файле qml проекта. Использование build-> run загружает окно QML Scene с нужной веб-страницей, но Qt Creator выдает следующий вывод:
Starting /usr/lib/i386-linux-gnu/qt5/bin/qmlscene -I /home/tomas/ubuntu-sdk/SL-planner -I /usr/bin -I /usr/lib/i386-linux-gnu/qt5/qml /home/tomas/ubuntu-sdk/SL-planner/SL-planner.qml
unity::action::ActionManager::ActionManager(QObject*):
Could not determine application identifier. HUD will not work properly.
Provide your application identifier in $APP_ID environment variable.
file:///usr/lib/i386-linux-gnu/qt5/qml/Ubuntu/Components/MainView.qml:257: TypeError: Cannot call method 'hasOwnProperty' of null
Мой SL-planner.qml выглядит так:
import QtQuick 2.0
import Ubuntu.Components 0.1
import QtWebKit 3.0
/*!
\brief MainView with a Flickable WebView.
*/
MainView {
// objectName for functional testing purposes (autopilot-qt5)
objectName: "mainView"
// Note! applicationName needs to match the "name" field of the click manifest
applicationName: "com.ubuntu.developer.tomoqv.SL-planner"
/*
This property enables the application to change orientation
when the device is rotated. The default is false.
*/
automaticOrientation: true
width: units.gu(100)
height: units.gu(75)
Flickable {
id: webViewFlickable
anchors.fill: parent
WebView {
id: webView
anchors.fill: parent
url: "http://mobil.sl.se"
}
}
}
Чего мне не хватает?