Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1975

Fetching contacts on Symbian blocks the UI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 1.2.0
    • Contacts
    • None
    • Symbian Belle, Qt 4.7.4, Qt Mobility 1.2

      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().

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            latej Lauri Jääskelä
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes