Results 1 to 2 of 2

Thread: QML Contacts and Importing an individual from a list

  1. #1
    Join Date
    Jun 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Question QML Contacts and Importing an individual from a list

    So I have some QML code that has two ContactModel instances. One is from the local system (getting the already installed contacts), and the other one is from an external vCard that I loaded up. When I want to do is copy a specific contact from one ContactModel to the other. Lets say one manager is called "conModelA" and the other one is called "conModelB". So I tried "conModelA.saveContact(conModelB.contacts[2])" but that doesn't work because conModelB.contacts[anyIndex] is always undefined. Has anybody else tried something similar? Thanks.

  2. #2
    Join Date
    Feb 2011
    Location
    Saint-Petersburg
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QML Contacts and Importing an individual from a list

    I think, you need to use conModelB.contacts.get(anyIndex) instead conModelB.contacts[anyIndex]

Similar Threads

  1. qtMobility and symbian contacts
    By fuoco66 in forum Newbie
    Replies: 5
    Last Post: 14th March 2011, 00:25
  2. How to display individual character of a string?
    By cooper in forum Qt Programming
    Replies: 2
    Last Post: 15th July 2009, 05:19
  3. How to set Validator for individual cell in QTable
    By raghvendramisra in forum Qt Programming
    Replies: 3
    Last Post: 13th September 2008, 15:51
  4. dealing individual objects
    By kingslee in forum General Programming
    Replies: 9
    Last Post: 15th November 2006, 01:28

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.