Nominate our 2022 Qt Champions!

QGeoPositioning on OS X

  • Hi guys,

    it's possible to read positioning/satellite info from Qt on OSX?
    At the moment

    int main(int argc, char *argv[])
        QGuiApplication app(argc, argv);
        qDebug() << "Position Sources: " << QGeoPositionInfoSource::availableSources();
        qDebug() << "Satellite Sources: " << QGeoSatelliteInfoSource::availableSources();
        return app.exec();

    In that case I get both position sources and satellite sources lists empty.

    I'm using Qt 5.5.0 installed by installer.
    Should I build something (or all Qt sources) or is not possible to use it from OS X?

    The alternative way is to implement my source classes using Native API

    Thanks in advance

  • Lifetime Qt Champion


    AFAIK, there's no backend currently for OS X, so you could write it and submit for inclusion :)

  • Hi,

    I was able to build the iOS plugin for OSX and it works.

  • Lifetime Qt Champion

    Then you can use that knowledge to add OS X to the backend list

Log in to reply