QML Contact Model Problem
Hi everyone!
I’m developing an application for N950 that must allow users to save new contacts in the address book, but when I try to use the ContactModel component it gives me an error.
Here’s the code I’m using:
- ContactModel{
- id:cm
- }
- Contact{
- id: contactoNuevo
- Name {
- firstName: "Medico";
- lastName: variable1;
- }
- EmailAddress {
- emailAddress: variable2;
- }
- address.street: variable3;
- address.locality: "Ciudad de Mexico"
- address.country:"Mexico"
- PhoneNumber {
- number: variable4;
- }
- }
- Image{
- id:agregarBtn
- source: "imagenes/button.png"
- MouseArea{
- anchors.fill: parent
- onClicked: {
- cm.saveContact(contactoNuevo);
- }
- }
- }
And it throws this error:
- libqtcontacts-tracker: contactsaverequest.cpp:1969: Save request prematurely failed for contact 1/1
- QSparqlConnection::exec: connection not open
- libqtcontacts-tracker: sparqlresolver.cpp:144: Connection not open
- libqtcontacts-tracker: contactsaverequest.cpp:2046: Cannot resolve local ids of saved contacts
Thanks in advance :)
2 replies
You must log in to post a reply. Not a member yet? Register here!

