Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2010

    Question problem when get location by GPS indoor

    Hi all,

    I am working in a GPS-based application, using Qt 4.6.3 (Nokia Qt SDK 1.0.2) and QMobility 1.0

    the application is working outdoor, but when running the application indoor it is failed to locate by GPS. Altho the OVI Maps application is working and got the location, after that if i open my application again, it will work.

    I used the below codes to get the location:

    QGeoPositionInfoSource m_source = QGeoPositionInfoSource::createDefaultSource(this);
    m_source->setUpdateInterval(60 * 1000); // update every one minute
    connect(m_source, SIGNAL(positionUpdated(QGeoPositionInfo)), SLOT(onPositionUpdated(QGeoPositionInfo)));
    connect(m_source, SIGNAL(updateTimeout()), SLOT(onUpdateTimeout()));
    The signal updateTimeout() is emitted when i try to run the application indoor
    How can i make GPS work indoor like OVI Maps.

    Thanks a lot.

  2. #2
    Registered User
    Join Date
    Jan 2010

    Re: problem when get location by GPS indoor

    Hi all;

    i found a solution for this problem

    first i set preferred position method to be "QGeoPositionInfoSource::SatelliteMethod" and if recive failling signal the i set prefarred method to be NonsatelliteMethod and call requestUpdate again.

    Thanks a lot.

  3. #3
    Registered User
    Join Date
    Apr 2009

    Re: problem when get location by GPS indoor

    I would reccomend you to use QGeoPositionInfoSource::AllPositioningMethods
    Symbian & Qt developer. http://vladest.org

Similar Threads

  1. cannot get gps location when the qpsdata program did not open
    By oruccim in forum [Archived] Qt Mobility Project
    Replies: 1
    Last Post: 2011-04-02, 08:28
  2. get GPS location without dialogs
    By microsoft2 in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2010-12-05, 10:48
  3. Replies: 1
    Last Post: 2010-05-30, 13:03
  4. Get GPS Location
    By mrMattar in forum Symbian
    Replies: 1
    Last Post: 2010-03-30, 14:13
  5. Get Location without using GPS
    By ermohanraja in forum Mobile Java Tools & SDKs
    Replies: 5
    Last Post: 2009-01-30, 11:02

Posting Permissions

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