Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User mka_'s Avatar
    Join Date
    Jul 2010
    Posts
    8
    Hi,

    I have some problem with QMessageManager->queryMessages .. In simulator everything works perfectly, and I can query messages, but now when I am trying this querymessages code in real device (N900), querymessages returns 0 messages. In device there is a sim card, device has some old messages, my friend send me a new message, but querymessages returns still zero messages. Anybody have idea why??

    Code:
    QMessageFilter filter(QMessageFilter::byType(QMessage::AnyType));
        QMessageBox::information(this, "", QString("You have %1 message(s)").arg(m_manager->queryMessages(filter).count()));
    Last edited by mka_; 2010-07-13 at 12:53.

  2. #2
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Try this:
    Code:
    QMessageBox::information(this, "", QString("You have %1 message(s)").arg(m_manager->queryMessages().count()));

  3. #3
    Registered User mka_'s Avatar
    Join Date
    Jul 2010
    Posts
    8
    Quote Originally Posted by divanov View Post
    Try this:
    Code:
    QMessageBox::information(this, "", QString("You have %1 message(s)").arg(m_manager->queryMessages().count()));
    I tried it, but no success

  4. #4
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Quote Originally Posted by mka_ View Post
    I tried it, but no success
    I'm using 10.2010.19-1 and Qt Mobility 1:1.0.0-maemo1+0m5 and it works properly.

  5. #5
    Registered User mka_'s Avatar
    Join Date
    Jul 2010
    Posts
    8
    Hi again

    Am I missing something from the device?? I have followed the following instructions http://doc.qt.nokia.com/nokia-qtsdk-...ing-maemo.html especially how to install qt mobility APIs to device. But do I have to do something else to get mobility APIs working properly?? My application is properly running in device, but when I try this queryMessages without filter, it returns zero messages (QMessageIDList is empty)

  6. #6
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    I'm using scratchbox for compiling. Is your Nokia Qt SDK for Windows, Mac OS or Linux?

  7. #7
    Registered User mka_'s Avatar
    Join Date
    Jul 2010
    Posts
    8
    for Windows

  8. #8
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    I don't have Windows machine, so cannot verify the problem is related to Windows Nokia Qt SDK, but this is what I currently think.

  9. #9
    Registered User zuo3diao's Avatar
    Join Date
    Feb 2009
    Posts
    25
    I find the problem, that if you use the Qt Creator to deploy the deb and run ,then some function 's behave is strange.
    You can use the xterm to run it in the N900 , it works ,but SDK has some fault yet ,
    message.status() return 1 ,it should be 0x4.
    qDebug() << m_manager->removeMessage(id); is return true ,but the message is there already.

    The link http://discussion.forum.nokia.com/fo...message-object
    is also.
    Last edited by zuo3diao; 2010-07-21 at 10:49.

  10. #10
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Could you please file a bug to Nokia Qt SDK?
    http://bugreports.qt.nokia.com/secure/Dashboard.jspa

  11. #11
    Registered User mka_'s Avatar
    Join Date
    Jul 2010
    Posts
    8
    Quote Originally Posted by divanov View Post
    I'm using 10.2010.19-1 and Qt Mobility 1:1.0.0-maemo1+0m5 and it works properly.
    hi,

    My emails works properly (I can query emails and it works brilliantly), but sms messages which are under conversations->sms in N900, they do not work properly?? MessageManager->QueryMessages return only emails, no sms's

Similar Threads

  1. querymessages example not compiling when QMessageStore is added
    By jmclaurin11 in forum [Archived] Qt Mobility Project
    Replies: 1
    Last Post: 2010-04-27, 03:47
  2. My browser works on simulator but not on mobile
    By gaurav_varma in forum Mobile Java Networking & Messaging & Security
    Replies: 9
    Last Post: 2008-04-07, 18:34
  3. Problems accessing mail via 6230 (simulator works though)
    By kipphebel3 in forum Mobile Web Site Development
    Replies: 0
    Last Post: 2004-10-01, 09:56
  4. <a href="test.mid">Midi</a> doens't works!
    By ernestkok in forum Mobile Web Site Development
    Replies: 0
    Last Post: 2004-02-20, 09:35
  5. Arabic Language Works in the Simulator but in real Life not :)
    By 2447677 in forum Mobile Web Site Development
    Replies: 2
    Last Post: 2003-07-01, 08:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved