Skip to content

NmeaPositionInfoSource

Qt Base Class: QNmeaPositionInfoSource

Signature: QNmeaPositionInfoSource(self, updateMode: PySide6.QtPositioning.QNmeaPositionInfoSource.UpdateMode, parent: Optional[PySide6.QtCore.QObject] = None) -> None

Base classes

Name Children Inherits
GeoPositionInfoSourceMixin
prettyqt.positioning.geopositioninfosource
QNmeaPositionInfoSource
PySide6.QtPositioning
QNmeaPositionInfoSource(self, updateMode: PySide6.QtPositioning.QNmeaPositionInfoSource.UpdateMode, parent: Optional[PySide6.QtCore.QObject] \= None) -> None

⋔ Inheritance diagram

graph TD
  1473573461952["positioning.NmeaPositionInfoSource"]
  1473573460000["positioning.GeoPositionInfoSourceMixin"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473573343856["QtPositioning.QNmeaPositionInfoSource"]
  1473573338000["QtPositioning.QGeoPositionInfoSource"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  1473573460000 --> 1473573461952
  1473299815024 --> 1473573460000
  140713234304496 --> 1473299815024
  1473573343856 --> 1473573461952
  1473573338000 --> 1473573343856
  1473288842240 --> 1473573338000
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: GeoPositionInfoSourceMixin, QNmeaPositionInfoSource

Source code in prettyqt\positioning\nmeapositioninginfosource.py
class NmeaPositionInfoSource(
    positioning.GeoPositionInfoSourceMixin, QtPositioning.QNmeaPositionInfoSource
):
    def __init__(
        self,
        update_mode: QtPositioning.QNmeaPositionInfoSource.UpdateMode | str,
        parent: QtCore.QObject,
    ):
        if isinstance(update_mode, QtPositioning.QNmeaPositionInfoSource.UpdateMode):
            mode = update_mode
        else:
            mode = UPDATE_MODES[update_mode]
        super().__init__(mode, parent)

    def __repr__(self):
        return get_repr(self)

    def get_update_mode(self) -> str:
        return UPDATE_MODES.inverse[self.updateMode()]

⌗ Property table

Qt Property Type Doc
objectName QString
updateInterval int
minimumUpdateInterval int
sourceName QString
preferredPositioningMethods QFlags