Results 1 to 7 of 7

Thread: Service action example

  1. #1
    Join Date
    Jun 2011
    Posts
    14
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy Service action example

    Hi everyone..I want to run the example in qt help named "service action ".I have QT SDK1.1.2.
    I did the following steps to run it:
    1. create new project,choose QT Widget Project--> QT GUI Application
    2. gave it same name and then next next next..
    3. I copy pasted all the codes in example .
    4.built the project
    I get 2 errors.
    1."QMEssageService.h",no such file or directory
    2. expected constructor,destructor,or type conversion before 'class'.

    whats my mistake or is there any other way to do it??kindly help me...it will be so kind of you..I need to run that example ..
    thank you all

  2. #2
    Join Date
    Jul 2010
    Location
    Indonesia
    Posts
    83
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo
    Thanked 17 Times in 17 Posts

    Default Re: Service action example

    Did you try opening the example directly from qt example directory? Not by creating new project, just open the existing project.
    ~ We are nothing in this universe ~

  3. #3
    Join Date
    Jun 2011
    Posts
    14
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Service action example

    Yes I did but no use..
    Tell me one thing is it necessory to connect the mobile phone before building that projecT??

  4. #4
    Join Date
    Dec 2010
    Location
    Russia
    Posts
    83
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    1
    Thanked 12 Times in 11 Posts

    Default Re: Service action example

    Even though i don't use SDK ,i think you should check the header's name - Qt has a straight naming convention . I guess there might be a QMessageService.h , but not a QMEssageService.h
    Also take a look at other headers declared in the problematic header file , i mean as far as i remember SDK's headers paths are specified like that :
    #include<ModuleName/HeaderName> , instead of #include<HeaderName>.What about phone, i don't think you need one to run an application , there is an emulator , isn't it ?

  5. #5
    Join Date
    Jun 2011
    Posts
    14
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Service action example

    It is the example project in qt's help,and the header files error is not a prob,,I hid that line and no further errors were appearing,,the problem is the other error,"expected constructor,destructor,or type conversion before 'class" how should I overcome ths??

    tellme one more thing is it necessory to connect the mobile for running this application example??because I have been doing it without my phone connected..

  6. #6
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Service action example

    The "expected constructor,destructor,or type conversion before 'class" error is a result of not fixing the error regarding the absence of the QMessageService.h file.

    Do you have the QtMobility APIs installed in your SDK?

  7. #7
    Join Date
    Jun 2011
    Posts
    14
    Qt products
    Qt4
    Platforms
    Windows

    Smile Re: Service action example

    thank you sooo much ChrisW67..I have been trying to solve this issue for like 3,4 months,,now its finally done..

    thak you everone else,,and especially u Chris..

    GOD BLess u

Similar Threads

  1. DBus service name
    By charlesf in forum Qt Programming
    Replies: 6
    Last Post: 4th May 2009, 08:53
  2. Creating QDS service
    By bowser in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 29th October 2007, 12:12
  3. Using QHttp in a QDS service
    By bowser in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 22nd October 2007, 21:31
  4. No action checked in an exclusive action group
    By SkripT in forum Qt Programming
    Replies: 12
    Last Post: 13th February 2006, 07:19

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
  •  
Qt is a trademark of The Qt Company.