HTML5 Geolocation in QtWebEngine on Ubuntu 18.04
-
wrote on 20 May 2019, 17:10 last edited by Yakov Eremin
Hello,
I have a USB U-Blox 7 dongle, installed gpsd, gpsd-client and geoclue, Qt 5.12.
It works nice with OpenCPN, cgps, and don't works with recommended "WebEngine Widgets Maps Example". BTW, Firefox and Chrome also unable to use it.
How to check is it Qt issue or wrong settings of gpsd/OS?
-
Hello,
I have a USB U-Blox 7 dongle, installed gpsd, gpsd-client and geoclue, Qt 5.12.
It works nice with OpenCPN, cgps, and don't works with recommended "WebEngine Widgets Maps Example". BTW, Firefox and Chrome also unable to use it.
How to check is it Qt issue or wrong settings of gpsd/OS?
@Yakov-Eremin
read this: https://doc.qt.io/qt-5/qtwebengine-features.html#html5-geolocationto check if geoclue is working properly simply test if it delivers a position: https://doc.qt.io/qt-5/qml-qtpositioning-positionsource.html#example-usage
1/2