This one really really basic, I used a Timer because it didn't want to close immediately.
Start with the imports:
import QtQuick 1.0
import com.nokia.symbian 1.1
Then I defined a PageStackWindow, you can use this, Page, or Window, it doesn't really matter.
PageStackWindow {
showToolBar: false
showStatusBar: false
}
Then I use a QML Timer to trigger the Exit of the Application, it is set to 100 milliseconds here:
Timer {
id: startexit
interval: 100; running: false; repeat: false
onTriggered: {
Qt.quit();
}
}
After that is the Component.onCompleted, this is what triggers the Web browser to be launched and the timer to be started:
Component.onCompleted: {
Qt.openUrlExternally ('http://symbian-developers.net')
startexit.start();
}
All together it should look like this:
import QtQuick 1.0
import com.nokia.symbian 1.1
PageStackWindow {
showToolBar: false
showStatusBar: false
Timer {
id: startexit
interval: 100; running: false; repeat: false
onTriggered: {
Qt.quit();
}
}
Component.onCompleted: {
Qt.openUrlExternally ('http://sdf.allstarsoftware.co.uk')
startexit.start();
}
}