×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,028

    QMessageService has not been declared

    Trying to use QMessageService for the purpose of sending sms's, but whenever i try to build the application, the compiler throws about 12 errors regarding the non-declaration of QMessageService .
    Though i have already included all the headers related to it & also added the necessary line in the .pro file (CONFIG += mobility
    MOBILITY += messaging) but then also i am getting the same messages.

    testing on for meego, with Qt 1.1.3 SDK .

    some bug also got reported regarding the same:

    https://bugreports.qt.nokia.com/brow...nel#issue-tabs
    Last edited by vineet.jain; 2011-11-28 at 13:28.

  2. #2
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: QMessageService has not been declared

    Hi,
    My Qt SDK built correctly the app attached to the bug report mentioned in your post.
    Have you defined QTM_USE_NAMESPACE? I believe those class are not available because of the namespace.

  3. #3
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,028

    Re: QMessageService has not been declared

    If i see the header file, for e.g. QmessageService.h then i can see the particular macro at the top but it is underlined in red so its unable to take that macro i suppose. I also tried to replace that macro with : using namespace Qtmobility; but after replacing i get errors like: undefined ref to QMessageService etc.

  4. #4
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,028

    Re: QMessageService has not been declared

    Resolved. I missed the QTM_USE_NAMESPACE to be mentioned in the class which i made & included those headers in it. I thought i need not mention that macro in the class header as its already there in qmessageservice.h.But mentioning it in class header made it. Thanks gnuton...

Similar Threads

  1. Save a message in system store with QMessageService
    By freesmee in forum [Archived] Qt Mobility Project
    Replies: 0
    Last Post: 2011-05-12, 21:37
  2. Send multiple sms using QMessageService
    By yannifan in forum [Archived] Qt Mobility Project
    Replies: 4
    Last Post: 2011-04-20, 03:29
  3. QMessageService::compose - fields aren't filled
    By pslawins in forum [Archived] Qt Mobility Project
    Replies: 1
    Last Post: 2011-04-19, 22:03
  4. how to implement QmessageService::compose in QT Mobility
    By pengan in forum [Archived] Qt Mobility Project
    Replies: 6
    Last Post: 2011-01-15, 22:54
  5. QMessageService throws exception
    By shimaa in forum [Archived] Qt Mobility Project
    Replies: 2
    Last Post: 2010-06-08, 17:47

Posting Permissions

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