Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
1.2.0
-
None
-
Symbian Belle, Qt 4.7.4, Qt Mobility 1.2
Description
Fetching contacts on Symbian causes the UI of an application to be blocked while contacts are being fetched.
Here's a short example application which should show a spinning cube on top of the list that shows all contacts on the device. When the application is started the animation starts running only after all the contacts have been fetched.
import QtQuick 1.1 import QtMobility.contacts 1.1 Rectangle { width: 360 height: 640 ListView { anchors.fill: parent model: ContactModel {id: contacts} delegate: Text { text: contacts.contacts[index].name.firstName + " " + contacts.contacts[index].name.lastName } } Rectangle { anchors.centerIn: parent width: 50 height: 50 color: "red" NumberAnimation on rotation { running: true duration: 1000 from: 0 to: 360 loops: Animation.Infinite } } }
I also tried to create a QContactManager and a QContactFetchRequest in C++ and use the native APIs to fetch the contacts. This does not work either. Even if the asynchronous API is used, QML UI gets blocked after calling QContactFetchRequest.start().