12-05-2012 08:42 AM
I am trying to add a MapView to my application, but adding it appears to be causing a stall at startup time.
I can replicate this problem using the 'standard' samples as follows.
I use a newly installed Simulator (no other applications present), then create a new application based on the sample ListView (i.e. do File/New->Sample Cascades c++ ....). Then I just add the following attachedObjects to the main.qml. In the QML pasted below, the MapView is commented out. This works (but does nothing since the attached Object is never used!) But if I put the MapView in, the application stalls on the splash screen.
The slog2info log says the following:
Dec 05 08:17:52.699 com.example.TestMap.testDev_ple_TestMap96db459_.78
Dec 05 08:18:22.625 com.example.TestMap.testDev_ple_TestMap96db459_.78
Any clues as to why this is happening would be appreciated....
Following is the QML I added. Just to confirm, this is the standard ListView sample application, with just this QML added to main.qml. No other changes. And this code came straight from the mapview sample.
attachedObjects: [
// The sheet that contains the map view
Sheet {
id: mapSheet
Page {
Container {
background: Color.Black
// The address label
Label {
id: addressLabel
horizontalAlignment: HorizontalAlignment.Center
textStyle {
base: SystemDefaults.TextStyles.TitleText
color: Color.White
textAlign: TextAlign.Center
}
}
/*
// The map view
MapView {
id: mapView
horizontalAlignment: HorizontalAlignment.Fill
// Enforce the usage of the 3D rendering engine
onCreationCompleted: setRenderEngine("RenderEngine3D")
}
*/
// The 'Back' button
Button {
horizontalAlignment: HorizontalAlignment.Center
text: qsTr ("Back")
onClicked: mapSheet.close()
}
}
}
}
]
12-07-2012 12:33 PM