×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    52

    QGeoPositionInfoSource class

    i can't use this class.
    code:

    #include "mainwindow.h"
    #include "ui_mainwindow.h"
    #include <QtLocation/QGeoPositionInfoSource>
    #include <QtLocation/QGeoPositionInfo>

    MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
    {
    // ui->setupUi(this);

    QGeoPositionInfoSource *source = QGeoPositionInfoSource::createDefaultSource(this);
    // if (source)
    // {
    // connect(source, SIGNAL(positionUpdated(QGeoPositionInfo)),this, SLOT(positionUpdated(QGeoPositionInfo)));
    // source->startUpdates();

    // }
    }


    error :
    QGeoPositionInfoSource was not declared in this scope
    source was not declared in this scope

  2. #2
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,355

    Re: QGeoPositionInfoSource class

    It seems you have skipped the Qt Mobility Quick Start example.
    What you are using is the namespace macro, which is step #2 in the above mentioned resource.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  3. #3
    Registered User
    Join Date
    Oct 2009
    Posts
    52

    Re: QGeoPositionInfoSource class

    thanks alot ltomuta . it solved the errors

Similar Threads

  1. QGeoPositionInfoSource initialization problem
    By codestain in forum [Archived] Qt Mobility Project
    Replies: 20
    Last Post: 2011-04-13, 18:31
  2. QGeoPositionInfoSource::createDefaultSource results in Lbs Client Fault; Reason 6
    By srebrodolskite in forum [Archived] Qt Mobility Project
    Replies: 8
    Last Post: 2011-03-30, 07:25
  3. Issue with QGeoPositionInfoSource
    By davkaplan in forum [Archived] Qt Mobility Project
    Replies: 10
    Last Post: 2010-08-26, 03:11
  4. Should the class be an R class or a T class?
    By AshramArzephucque in forum Symbian
    Replies: 3
    Last Post: 2007-11-26, 19:37

Posting Permissions

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