Hi,
this is my first post here and also my first qt app. This app is a simple qt webkit experiment that loads a local html page (that contains ajax calls to remote urls). No problem in the qt creator simulator, but when I launch it on the phone (nokia 700) it only shows the "waiting pointer" and then a black screen is shown (sometimes it's trasparent as I can see icons on background).
In Belle FP1 I discovered that after installing qt-quick-components 1.1 on the phone the app worked beatifully. But after the FP2 update if I install that library the new camera app stop working (black screen) and I have to deep reset the phone to get it back! So I suppose there is a kind of conflict and installing qt-quick is not the right solution.
Anywhere i post a bit of code and hope someone can help me...
main qml:
main.cpp:Code:import QtQuick 1.1 import com.nokia.symbian 1.1 import QtWebKit 1.0 Rectangle { Flickable { id: flickable width: parent.width height: parent.height contentWidth: webView.width contentHeight: webView.height interactive: true clip: true WebView { id: webView url: "qrc:///html/test.html" preferredWidth: flickable.width preferredHeight: flickable.height onAlert: console.log("WebView onAlert: " + message) settings.localContentCanAccessRemoteUrls: true javaScriptWindowObjects: QtObject { WebView.windowObjectName: "qml" function closeApp() { //console.log("This call is in QML!"); //QmlApplicationViewer.hide(); Qt.quit(); } } } } }
Code:#include <QtGui/QApplication> #include "qmlapplicationviewer.h" #include <QtNetwork/QNetworkProxyFactory> //aggiunta da me Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); QNetworkProxyFactory::setUseSystemConfiguration ( true) ; //aggiunta da me QmlApplicationViewer viewer; //viewer.setProperty("orientationMethod", 1); viewer.setMainQmlFile(QLatin1String("qml/test/main.qml")); viewer.showExpanded(); return app->exec(); }

Reply With Quote

