Results 1 to 6 of 6

Thread: qtMobility and symbian contacts

  1. #1
    Join Date
    Mar 2011
    Posts
    7
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Unhappy qtMobility and symbian contacts

    hi to everybody. I'm new to qt developing for symbian, but during the past 2 weeks i spent a lot of time to create an app to read contats on a symbian device. Finally today i reach my aim, but the app only works fine on the symbian simulator. On the device the app doesn't work, but it close after 1 second. I use the qtmobility class <qContact> and <qcontactmanager>.

    Someone can help me?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: qtMobility and symbian contacts

    Quote Originally Posted by fuoco66 View Post
    Someone can help me?
    How could we if you don't show us what you are doing. Or post a backtrace of the crash, or, or, or.

  3. #3
    Join Date
    Mar 2011
    Posts
    7
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Re: qtMobility and symbian contacts

    I'm sorry but i published my firts post from my mobile.
    So, in my mainwindow.cpp i use
    Qt Code:
    1. void MainWindow::findnew()
    2. {
    3. m_contactManager = new QContactManager();
    4. QList<QContact> contacts = m_contactManager->contacts();
    5. qDebug() << contacts[0];
    6. }
    To copy to clipboard, switch view to plain text mode 

    to get all fields from the first contact. On the simulator it works fine returning
    Qt Code:
    1. QContact(QContactId("qtcontacts:memory:id=simulator", 2))
    2. QContactDetail(name="DisplayLabel", key=7, "Label"=QVariant(QString, "Self Simulator") )
    3. QContactDetail(name="Type", key=10, "Type"=QVariant(QString, "Contact") )
    4. QContactDetail(name="Name", key=13, "CustomLabel"=QVariant(QString, "Self Simulator") , "FirstName"=QVariant(QString, "Self") , "LastName"=QVariant(QString, "Simulator") )
    5. QContactDetail(name="EmailAddress", key=16, "EmailAddress"=QVariant(QString, "selfcontact@example.com") )
    6. QContactDetail(name="PhoneNumber", key=19, "PhoneNumber"=QVariant(QString, "+44123456789") )
    7. QContactDetail(name="Address", key=22, "Country"=QVariant(QString, "UK") , "Locality"=QVariant(QString, "Leister") , "Street"=QVariant(QString, "56 Edmonton Square") )
    8. QContactDetail(name="Guid", key=25, "Guid"=QVariant(QString, "0") )
    9. QContactDetail(name="Timestamp", key=28, "CreationTimestamp"=QVariant(QDateTime, QDateTime("dom 13. mar 12:21:09 2011") ) , "ModificationTimestamp"=QVariant(QDateTime, QDateTime("dom 13. mar 12:21:09 2011") ) )
    10. C:\Users\Manu\qtPrj\paky-build-simulator\release\paky.exe exited with code 0
    To copy to clipboard, switch view to plain text mode 


    But on the device when i push the button to start the method the app crash saying:
    Qt Code:
    1. Starting application...
    2. Application running with pid 4744.
    3. Process 4744, thread 4745 stopped at 0x8029b7e9: Thread 0x1289 has panicked. Category: CNTMODEL; Reason: 15
    4. Finished.
    To copy to clipboard, switch view to plain text mode 

    Now, someone knows how to fix?

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: qtMobility and symbian contacts

    http://lmgtfy.com/?q=CNTMODEL+reason+15 first result is a post at forum nokia with a link to a bug report... I guess you are using mobility < 1.1.0

  5. #5
    Join Date
    Mar 2011
    Posts
    7
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Re: qtMobility and symbian contacts

    i've already search on google, and also tey to use the qt mobility 1.1.1, but nothing change.

  6. #6
    Join Date
    Mar 2011
    Posts
    7
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Re: qtMobility and symbian contacts

    I tried to update the qtmobility library...the app doesn't crash anymore, but it returns me this error:
    Qt Code:
    1. [Qt Message] CActiveScheduler::RunIfReady() returned error: -1
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. QTMobility API
    By Girija in forum Newbie
    Replies: 6
    Last Post: 23rd October 2010, 06:42
  2. QTMobility API - Installation Error
    By Girija in forum Newbie
    Replies: 5
    Last Post: 15th October 2010, 11:35
  3. Replies: 1
    Last Post: 9th September 2010, 16:49
  4. How to install QtMobility?
    By radeknati in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 2nd June 2010, 10:30

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.