Subgroup: G

Class: QgsGPSConnection

class qgis.core.QgsGPSConnection

Bases: PyQt5.QtCore.QObject

Abstract base class for connection to a GPS device*

Methods

blockSignals
childEvent
children
close Closes connection to device
connect Opens connection to device
connectNotify
currentGPSInformation Returns the current gps information (lat, lon, etc.)
customEvent
deleteLater
disconnect
disconnectNotify
dumpObjectInfo
dumpObjectTree
dynamicPropertyNames
event
eventFilter
findChild findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject
findChildren findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]
inherits
installEventFilter
isSignalConnected
isWidgetType
isWindowType
killTimer
metaObject
moveToThread
objectName
parent
parseData Parse available data source content
property
pyqtConfigure Each keyword argument is either the name of a Qt property or a Qt signal.
receivers
removeEventFilter
sender
senderSignalIndex
setObjectName
setParent
setProperty
setSource Sets the GPS source.
signalsBlocked
startTimer
status Returns the status.
thread
timerEvent
tr

Attributes

Connected
DataReceived
GPSDataReceived
NotConnected
destroyed destroyed(self, QObject = None) [signal]
nmeaSentenceReceived nmeaSentenceReceived(self, str) [signal]
objectNameChanged objectNameChanged(self, str) [signal]
stateChanged stateChanged(self, QgsGPSInformation) [signal]
staticMetaObject
Connected = 1
DataReceived = 2
GPSDataReceived = 3
NotConnected = 0
class Status

Bases: int

childEvent()
close(self) → bool

Closes connection to device

connect(self) → bool

Opens connection to device

connectNotify()
currentGPSInformation(self) → QgsGPSInformation

Returns the current gps information (lat, lon, etc.)

customEvent()
disconnectNotify()
isSignalConnected()
nmeaSentenceReceived

nmeaSentenceReceived(self, str) [signal]

parseData(self)

Parse available data source content

receivers()
sender()
senderSignalIndex()
setSource(self, source: QIODevice)

Sets the GPS source. The class takes ownership of the device class

stateChanged

stateChanged(self, QgsGPSInformation) [signal]

status(self) → QgsGPSConnection.Status

Returns the status. Possible state are not connected, connected, data received

timerEvent()