×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Apr 2010
    Location
    Surat, India
    Posts
    277

    Where is QMessageManager::

    I am trying to run this example
    http://wiki.forum.nokia.com/index.ph...g_an_SMS_in_Qt

    But it is not getting build because I think there is not QMessageManager class.
    I can only see QMessageBox and QMessageBoxPrivate there is no other QMessage......

    I am using QT 4.6.3
    Tried in both QT Creator and Carbide.C++ but same error
    I have both sdk s60 3rd fp1 and s60 5th editon but only tried in s603rdfp1

    Here is the part of error log

    Code:
    undefined identifier 'QMessageManager'	mainwindow.h	/SMSListener	line 52	C/C++ Problem
    undefined identifier 'QMessageId'	mainwindow.h	/SMSListener	line 53	C/C++ Problem
    I think either there is some reference is missing or I am missing some file to include.

    Here is my pro file

    Code:
    #-------------------------------------------------
    #
    # Project created by QtCreator 2010-08-27T18:41:01
    #
    #-------------------------------------------------
    
    QT       += core gui
    
    TARGET = SMSListener
    TEMPLATE = app
    
    
    SOURCES += main.cpp\
            mainwindow.cpp
    
    HEADERS  += mainwindow.h
    
    FORMS    += mainwindow.ui
    
    CONFIG += mobility
    MOBILITY += messaging
    
    symbian {
        TARGET.UID3 = 0xe79920d8
        # TARGET.CAPABILITY += 
        TARGET.EPOCSTACKSIZE = 0x14000
        TARGET.EPOCHEAPSIZE = 0x020000 0x800000
        TARGET.CAPABILITY = ReadUserData \
        WriteUserData \
        ReadDeviceData \
        WriteDeviceData
    }
    Thanks,
    Rahul Kulshreshtha
    Please choose Notification type as "Instant Email Notification". It must be default.

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

    Re: Where is QMessageManager::

    Hi Rahul,

    I had just tested code given on the wiki link and it is working fine on my N900.

    The .pro file you had shown is working and probably you donot miss any thing in that.
    I think there might be some problem with .h file.
    Or just check if the file qmessagemanager are included or not?
    Jajal Mehul

  3. #3
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Where is QMessageManager::

    How is your header file mainwindow.h look like?? Have you added following header in your mainwindow.h file??
    #include <qmessage.h>
    #include <qmessagemanager.h>

  4. #4
    Regular Contributor
    Join Date
    Apr 2010
    Location
    Surat, India
    Posts
    277

    Re: Where is QMessageManager::

    Quote Originally Posted by james1980 View Post
    Hi Rahul,
    Or just check if the file qmessagemanager are included or not?
    I checked it is included.
    When I dig into that I found that "Editior" or "Compiler" is looking into wrong place for this file.
    Currently it is looking into "C:/NokiaQtSDK/Simulator/Qt/mingw/include/QtGui/"
    but I think it should be "C:\NokiaQtSDK\Symbian\SDK\epoc32\include\middleware"

    What can I do now?
    Thanks,
    Rahul Kulshreshtha
    Please choose Notification type as "Instant Email Notification". It must be default.

  5. #5
    Regular Contributor
    Join Date
    Apr 2010
    Location
    Surat, India
    Posts
    277

    Re: Where is QMessageManager::

    Before reinstall of Nokia QT SDK, I just tried with my Carbide.C++ one more time.
    I found it is including right file. I only forgot to enable below line which I had disabled in QT Creator becuase it was showing error in that.
    QTM_USE_NAMESPACE

    After enabling that it is getting Build in Carbide.C++ but still my QT Creator is not working properly.

    Carbide showing some warnings, How can I remove that.

    Code:
    Invalid project path: Include path not found (C:\Symbian\9.2\S60_3rd_FP1\Epoc32\include\domain\middleware).	SMSListener		pathentry	Path Entry Problem
    Thanks,
    Rahul Kulshreshtha
    Please choose Notification type as "Instant Email Notification". It must be default.

  6. #6
    Regular Contributor
    Join Date
    Apr 2010
    Location
    Surat, India
    Posts
    277

    Re: Where is QMessageManager::

    Quote Originally Posted by savaj View Post
    How is your header file mainwindow.h look like?? Have you added following header in your mainwindow.h file??
    I reinstalled the Nokia QT SDK and that solved this reference problem.
    I tried to add some more code and then compiled from Creator, It got build error
    Code:
           undefined reference to '_imp__ZN21QNetworkAccessManagerC1EP7QObject'
           :: error: collect2: ld returned 1 exit status
    My headers are right if I do Ctrl+Click on that then it opens right file. So I guess either linker is not able to find the implementation of NetworkAccessManager class or I may be missing some library to add.
    Thanks,
    Rahul Kulshreshtha
    Please choose Notification type as "Instant Email Notification". It must be default.

Similar Threads

  1. message slot problems--QMessageManager::messageAdded
    By zuo3diao in forum [Archived] Qt Mobility Project
    Replies: 15
    Last Post: 2010-09-16, 22:10
  2. QMessageManager->queryMessages works in simulator, but not in N900
    By mka_ in forum [Archived] Qt Mobility Project
    Replies: 10
    Last Post: 2010-08-16, 11:39
  3. QMessageManager::message(id) conn't get the message object
    By zuo3diao in forum [Archived] Qt Mobility Project
    Replies: 11
    Last Post: 2010-07-15, 17:13
  4. QMessageManager performances
    By Sfiet_Konstantin in forum [Archived] Qt Mobility Project
    Replies: 2
    Last Post: 2010-07-13, 18:49

Posting Permissions

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