Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User santijdelatorre's Avatar
    Join Date
    Apr 2010
    Posts
    17
    Hi,

    I've downloaded the Nokia Qt SDK Beta for mobile develop and I have a problem, when I use QT Location Mobility classes, I have compile errors.

    When I add the next lines in my .h file:

    #include <QGeoPositionInfoSource>
    ...
    QGeoPositionInfoSource *location_manager;

    I'm getting the message error below:
    "ISO C++ forbids declaration of 'QGeoPositionInfoSource' with no type"

    I've included next lines in .PRO file for Mobility Location use on project:


    CONFIG += mobility
    MOBILITY = location

    qtAddLibrary(QtLocation)

    Please, somebody can tell me what I'm doing wrong?

    Thanks in advance.
    Regards.

  2. #2
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Did you try to include
    Code:
    using namespace QtMobility;
    to a header file.

  3. #3
    Registered User santijdelatorre's Avatar
    Join Date
    Apr 2010
    Posts
    17
    Thanks!!!

    The project compiles ok now.

    Thank you very much!

Similar Threads

  1. GPS access in Nokia Qt Beta SDK
    By geolives in forum [Archived] Qt SDKs and Tools
    Replies: 11
    Last Post: 2010-05-20, 11:31
  2. which phones for laptop
    By dvdljns in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2006-02-14, 12:58

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