×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    17

    Qt Mobility on Nokia Qt SDK Beta

    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
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Qt Mobility on Nokia Qt SDK Beta

    Did you try to include
    Code:
    using namespace QtMobility;
    to a header file.

  3. #3
    Registered User
    Join Date
    Apr 2010
    Posts
    17

    Re: Qt Mobility on Nokia Qt SDK Beta

    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
  •  
×