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

Make QDeclarativeContact::setContact invokable

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • Contacts
    • None

      In my project I have a c++ backend which has instances of QContact. The ui is done in QML. Currently there's no way to create a QDeclarativeContact from c++ and call the setContact() function with the contact instance.
      Due to this, the only chance to access a contact from QML is getting the localId's from c++ and search for the contacts again with QDeclarativeContactModel. This seems pretty annoying to me and prevents users from mixing c++ and qml easily.

      Another approach to making setContact() invokable would be to provide a factory class to create a QDeclarativeContact from a QContact instance.
      Also a Q_INVOKABLE constructor would solve this.

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

            tikkakos Mika Tikkakoski
            gri Christoph Keller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes