×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    2

    Qt Mobility-messaging in Nokia Qt SDK

    hi, i am trying to write code for message encryption. but when i use the basic messaging header files they are not being detected. i am getting the following errors.

    PHP Code:
    ISO C++ forbids declaration of 'QMessageId' with no type
    expected 
    ',' or '...' before '&' token
    'QMessageManager' was not declared in scope
    template argument1 is invalid
    'QMessageManager' has not been declared
    'QMessageId' does not name a type 

    the code i've used is:
    http://wiki.forum.nokia.com/index.ph...g_an_SMS_in_Qt

    the header files are not being detected. so could anyone suggest with this?

  2. #2
    Nokia Developer Champion
    Join Date
    Sep 2007
    Location
    Bhavnagar
    Posts
    928

    Re: Qt Mobility-messaging in Nokia Qt SDK

    Are you using Nokia Qt SDK? Which version of the mobility is there? If you had a Qt mobility 1.0 than try to upgrade to 1.0.2 in which mobility is working properly. It seems to look like that your mobility is not configured properly. Try to search the othr thread there are similar discussion like this.
    Jajal Mehul

  3. #3
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Qt Mobility-messaging in Nokia Qt SDK

    Do you have
    Code:
    using namespace QtMobility;
    or
    Code:
    QTM_USE_NAMESPACE
    in your code?

  4. #4
    Registered User
    Join Date
    Jul 2010
    Posts
    2

    Re: Qt Mobility-messaging in Nokia Qt SDK

    yes i have using namespace Qtmobility in my code...

  5. #5
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Qt Mobility-messaging in Nokia Qt SDK

    first try to also cross check what james1980 has told in his post in the thread, next thing i hope is you have added messaging keyword in your pro file and included the header files properly.

    Regards,

  6. #6
    Nokia Developer Champion
    Join Date
    Aug 2010
    Location
    Ahmedabad
    Posts
    299

    Re: Qt Mobility-messaging in Nokia Qt SDK

    Have you set the following in your .pro file ?

    CONFIG += mobility
    MOBILITY = messaging

    INCLUDEPATH += "YOUR PATH"

    If you are using QtMobility 1.0.2 then the path location is "qt-mobility-opensource-src-1.0.2\src\messaging"

    This may help !!!

Similar Threads

  1. Replies: 35
    Last Post: 2010-09-13, 12:05
  2. Replies: 3
    Last Post: 2010-06-30, 01:17
  3. Nokia Qt SDK missing QT Mobility - messaging
    By Zeddeh in forum [Archived] Qt SDKs and Tools
    Replies: 5
    Last Post: 2010-06-07, 08:46
  4. Qt Mobility on Nokia Qt SDK Beta
    By santijdelatorre in forum [Archived] Qt Mobility Project
    Replies: 2
    Last Post: 2010-05-19, 14:33
  5. Is QT mobility part of Nokia QT SDK ?
    By ashwin_h in forum [Archived] Qt SDKs and Tools
    Replies: 7
    Last Post: 2010-05-04, 17:45

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×