GeoPositionInfo
Qt Base Class: QGeoPositionInfo
Signature: QGeoPositionInfo(self) -> None
QGeoPositionInfo(self, coordinate: PySide6.QtPositioning.QGeoCoordinate, updateTime: PySide6.QtCore.QDateTime) -> None
QGeoPositionInfo(self, other: PySide6.QtPositioning.QGeoPositionInfo) -> None
Base classes
Name |
Children |
Inherits |
QGeoPositionInfo PySide6.QtPositioning QGeoPositionInfo(self) -> None |
|
|
⋔ Inheritance diagram
graph TD
1473573452192["positioning.GeoPositionInfo"]
1473573334096["QtPositioning.QGeoPositionInfo"]
1473291690208["Shiboken.Object"]
140713234304496["builtins.object"]
1473573334096 --> 1473573452192
1473291690208 --> 1473573334096
140713234304496 --> 1473291690208
🛈 DocStrings
Bases: QGeoPositionInfo
Source code in prettyqt\positioning\geopositioninfo.py
| class GeoPositionInfo(QtPositioning.QGeoPositionInfo):
def __repr__(self):
return get_repr(self, self.get_coordinate(), self.get_timestamp())
def __contains__(self, index: AttributeStr):
return self.hasAttribute(ATTRIBUTE[index])
def __getitem__(self, index: AttributeStr) -> float:
return self.attribute(ATTRIBUTE[index])
def __setitem__(self, index: AttributeStr, value: float):
self.setAttribute(ATTRIBUTE[index], value)
def __delitem__(self, index: AttributeStr):
return self.removeAttribute(ATTRIBUTE[index])
def __bool__(self):
return self.isValid()
def get_coordinate(self) -> positioning.GeoCoordinate:
return positioning.GeoCoordinate(self.coordinate())
def get_timestamp(self) -> core.DateTime:
return core.DateTime(self.timestamp())
def set_timestamp(self, timestamp: datatypes.DateTimeType):
self.setTimestamp(datatypes.to_datetime(timestamp))
|