builtins.object Object QIODeviceBase builtins.object Object QObject QIODevice QSerialPort
class QSerialPort(QIODevice):
QSerialPort(self, info: PySide6.QtSerialPort.QSerialPortInfo, parent: Optional[PySide6.QtCore.QObject] = None) -> None QSerialPort(self, name: str, parent: Optional[PySide6.QtCore.QObject] = None) -> None QSerialPort(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None
Signature du constructeur | Description |
---|---|
__new__(*args, **kwargs) | Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__] |
Nom de l'attribut | Valeur |
---|---|
AllDirections | PySide6.QtSerialPort.QSerialPort.Direction.AllDirections |
Append | PySide6.QtCore.QIODeviceBase.OpenModeFlag.Append |
Baud115200 | PySide6.QtSerialPort.QSerialPort.BaudRate.Baud115200 |
Baud1200 | PySide6.QtSerialPort.QSerialPort.BaudRate.Baud1200 |
Baud19200 | PySide6.QtSerialPort.QSerialPort.BaudRate.Baud19200 |
Baud2400 | PySide6.QtSerialPort.QSerialPort.BaudRate.Baud2400 |
Baud38400 | PySide6.QtSerialPort.QSerialPort.BaudRate.Baud38400 |
Baud4800 | PySide6.QtSerialPort.QSerialPort.BaudRate.Baud4800 |
Baud57600 | PySide6.QtSerialPort.QSerialPort.BaudRate.Baud57600 |
Baud9600 | PySide6.QtSerialPort.QSerialPort.BaudRate.Baud9600 |
ClearToSendSignal | PySide6.QtSerialPort.QSerialPort.PinoutSignal.ClearToSendSignal |
Data5 | PySide6.QtSerialPort.QSerialPort.DataBits.Data5 |
Data6 | PySide6.QtSerialPort.QSerialPort.DataBits.Data6 |
Data7 | PySide6.QtSerialPort.QSerialPort.DataBits.Data7 |
Data8 | PySide6.QtSerialPort.QSerialPort.DataBits.Data8 |
DataCarrierDetectSignal | PySide6.QtSerialPort.QSerialPort.PinoutSignal.DataCarrierDetectSignal |
DataSetReadySignal | PySide6.QtSerialPort.QSerialPort.PinoutSignal.DataSetReadySignal |
DataTerminalReadySignal | PySide6.QtSerialPort.QSerialPort.PinoutSignal.DataTerminalReadySignal |
DeviceNotFoundError | PySide6.QtSerialPort.QSerialPort.SerialPortError.DeviceNotFoundError |
EvenParity | PySide6.QtSerialPort.QSerialPort.Parity.EvenParity |
ExistingOnly | PySide6.QtCore.QIODeviceBase.OpenModeFlag.ExistingOnly |
HardwareControl | PySide6.QtSerialPort.QSerialPort.FlowControl.HardwareControl |
Input | PySide6.QtSerialPort.QSerialPort.Direction.Input |
MarkParity | PySide6.QtSerialPort.QSerialPort.Parity.MarkParity |
NewOnly | PySide6.QtCore.QIODeviceBase.OpenModeFlag.NewOnly |
NoError | PySide6.QtSerialPort.QSerialPort.SerialPortError.NoError |
NoFlowControl | PySide6.QtSerialPort.QSerialPort.FlowControl.NoFlowControl |
NoParity | PySide6.QtSerialPort.QSerialPort.Parity.NoParity |
NoSignal | PySide6.QtSerialPort.QSerialPort.PinoutSignal.NoSignal |
NotOpen | PySide6.QtCore.QIODeviceBase.OpenModeFlag.NotOpen |
NotOpenError | PySide6.QtSerialPort.QSerialPort.SerialPortError.NotOpenError |
OddParity | PySide6.QtSerialPort.QSerialPort.Parity.OddParity |
OneAndHalfStop | PySide6.QtSerialPort.QSerialPort.StopBits.OneAndHalfStop |
OneStop | PySide6.QtSerialPort.QSerialPort.StopBits.OneStop |
OpenError | PySide6.QtSerialPort.QSerialPort.SerialPortError.OpenError |
Output | PySide6.QtSerialPort.QSerialPort.Direction.Output |
PermissionError | PySide6.QtSerialPort.QSerialPort.SerialPortError.PermissionError |
ReadError | PySide6.QtSerialPort.QSerialPort.SerialPortError.ReadError |
ReadOnly | PySide6.QtCore.QIODeviceBase.OpenModeFlag.ReadOnly |
ReadWrite | PySide6.QtCore.QIODeviceBase.OpenModeFlag.ReadWrite |
RequestToSendSignal | PySide6.QtSerialPort.QSerialPort.PinoutSignal.RequestToSendSignal |
ResourceError | PySide6.QtSerialPort.QSerialPort.SerialPortError.ResourceError |
RingIndicatorSignal | PySide6.QtSerialPort.QSerialPort.PinoutSignal.RingIndicatorSignal |
SecondaryReceivedDataSignal | PySide6.QtSerialPort.QSerialPort.PinoutSignal.SecondaryReceivedDataSignal |
SecondaryTransmittedDataSignal | PySide6.QtSerialPort.QSerialPort.PinoutSignal.SecondaryTransmittedDataSignal |
SoftwareControl | PySide6.QtSerialPort.QSerialPort.FlowControl.SoftwareControl |
SpaceParity | PySide6.QtSerialPort.QSerialPort.Parity.SpaceParity |
staticMetaObject | <PySide6.QtCore.QMetaObject object at 0x7f40db140380> |
Text | PySide6.QtCore.QIODeviceBase.OpenModeFlag.Text |
TimeoutError | PySide6.QtSerialPort.QSerialPort.SerialPortError.TimeoutError |
Truncate | PySide6.QtCore.QIODeviceBase.OpenModeFlag.Truncate |
TwoStop | PySide6.QtSerialPort.QSerialPort.StopBits.TwoStop |
Unbuffered | PySide6.QtCore.QIODeviceBase.OpenModeFlag.Unbuffered |
UnknownError | PySide6.QtSerialPort.QSerialPort.SerialPortError.UnknownError |
UnsupportedOperationError | PySide6.QtSerialPort.QSerialPort.SerialPortError.UnsupportedOperationError |
WriteError | PySide6.QtSerialPort.QSerialPort.SerialPortError.WriteError |
WriteOnly | PySide6.QtCore.QIODeviceBase.OpenModeFlag.WriteOnly |
Signature de la méthode | Description |
---|---|
__delattr__(self, name) | Implement delattr(self, name). [extrait de __delattr__.__doc__] |
__setattr__(self, name, value) | Implement setattr(self, name, value). [extrait de __setattr__.__doc__] |
aboutToClose | |
BaudRate | |
baudRate(self, directions: PySide6.QtSerialPort.QSerialPort.Directions = PySide6.QtSerialPort.QSerialPort.Direction.AllDirections) -> int | baudRate(self, directions: PySide6.QtSerialPort.QSerialPort.Directions = PySide6.QtSerialPort.QSerialPort.Direction.AllDirections) -> int [extrait de baudRate.__doc__] |
baudRateChanged | |
breakEnabledChanged | |
bytesAvailable(self) -> int | bytesAvailable(self) -> int [extrait de bytesAvailable.__doc__] |
bytesToWrite(self) -> int | bytesToWrite(self) -> int [extrait de bytesToWrite.__doc__] |
bytesWritten | |
canReadLine(self) -> bool | canReadLine(self) -> bool [extrait de canReadLine.__doc__] |
channelBytesWritten | |
channelReadyRead | |
clear(self, directions: PySide6.QtSerialPort.QSerialPort.Directions = PySide6.QtSerialPort.QSerialPort.Direction.AllDirections) -> bool | clear(self, directions: PySide6.QtSerialPort.QSerialPort.Directions = PySide6.QtSerialPort.QSerialPort.Direction.AllDirections) -> bool [extrait de clear.__doc__] |
clearError(self) -> None | clearError(self) -> None [extrait de clearError.__doc__] |
close(self) -> None | close(self) -> None [extrait de close.__doc__] |
DataBits | |
dataBits(self) -> PySide6.QtSerialPort.QSerialPort.DataBits | dataBits(self) -> PySide6.QtSerialPort.QSerialPort.DataBits [extrait de dataBits.__doc__] |
dataBitsChanged | |
dataTerminalReadyChanged | |
destroyed | |
Direction | |
Directions | |
error(self) -> PySide6.QtSerialPort.QSerialPort.SerialPortError | error(self) -> PySide6.QtSerialPort.QSerialPort.SerialPortError [extrait de error.__doc__] |
errorOccurred | |
FlowControl | |
flowControl(self) -> PySide6.QtSerialPort.QSerialPort.FlowControl | flowControl(self) -> PySide6.QtSerialPort.QSerialPort.FlowControl [extrait de flowControl.__doc__] |
flowControlChanged | |
flush(self) -> bool | flush(self) -> bool [extrait de flush.__doc__] |
handle(self) -> int | handle(self) -> int [extrait de handle.__doc__] |
isBreakEnabled(self) -> bool | isBreakEnabled(self) -> bool [extrait de isBreakEnabled.__doc__] |
isDataTerminalReady(self) -> bool | isDataTerminalReady(self) -> bool [extrait de isDataTerminalReady.__doc__] |
isRequestToSend(self) -> bool | isRequestToSend(self) -> bool [extrait de isRequestToSend.__doc__] |
isSequential(self) -> bool | isSequential(self) -> bool [extrait de isSequential.__doc__] |
objectNameChanged | |
open(self, mode: PySide6.QtCore.QIODeviceBase.OpenMode) -> bool | open(self, mode: PySide6.QtCore.QIODeviceBase.OpenMode) -> bool [extrait de open.__doc__] |
Parity | |
parity(self) -> PySide6.QtSerialPort.QSerialPort.Parity | parity(self) -> PySide6.QtSerialPort.QSerialPort.Parity [extrait de parity.__doc__] |
parityChanged | |
PinoutSignal | |
PinoutSignals | |
pinoutSignals(self) -> PySide6.QtSerialPort.QSerialPort.PinoutSignals | pinoutSignals(self) -> PySide6.QtSerialPort.QSerialPort.PinoutSignals [extrait de pinoutSignals.__doc__] |
portName(self) -> str | portName(self) -> str [extrait de portName.__doc__] |
readBufferSize(self) -> int | readBufferSize(self) -> int [extrait de readBufferSize.__doc__] |
readChannelFinished | |
readData(self, data: bytes, maxSize: int) -> object | readData(self, data: bytes, maxSize: int) -> object [extrait de readData.__doc__] |
readLineData(self, data: bytes, maxSize: int) -> object | readLineData(self, data: bytes, maxSize: int) -> object [extrait de readLineData.__doc__] |
readyRead | |
requestToSendChanged | |
SerialPortError | |
setBaudRate(self, baudRate: int, directions: PySide6.QtSerialPort.QSerialPort.Directions = PySide6.QtSerialPort.QSerialPort.Direction.AllDirections) -> bool | setBaudRate(self, baudRate: int, directions: PySide6.QtSerialPort.QSerialPort.Directions = PySide6.QtSerialPort.QSerialPort.Direction.AllDirections) -> bool [extrait de setBaudRate.__doc__] |
setBreakEnabled(self, set: bool = True) -> bool | setBreakEnabled(self, set: bool = True) -> bool [extrait de setBreakEnabled.__doc__] |
setDataBits(self, dataBits: PySide6.QtSerialPort.QSerialPort.DataBits) -> bool | setDataBits(self, dataBits: PySide6.QtSerialPort.QSerialPort.DataBits) -> bool [extrait de setDataBits.__doc__] |
setDataTerminalReady(self, set: bool) -> bool | setDataTerminalReady(self, set: bool) -> bool [extrait de setDataTerminalReady.__doc__] |
setFlowControl(self, flowControl: PySide6.QtSerialPort.QSerialPort.FlowControl) -> bool | setFlowControl(self, flowControl: PySide6.QtSerialPort.QSerialPort.FlowControl) -> bool [extrait de setFlowControl.__doc__] |
setParity(self, parity: PySide6.QtSerialPort.QSerialPort.Parity) -> bool | setParity(self, parity: PySide6.QtSerialPort.QSerialPort.Parity) -> bool [extrait de setParity.__doc__] |
setPort(self, info: PySide6.QtSerialPort.QSerialPortInfo) -> None | setPort(self, info: PySide6.QtSerialPort.QSerialPortInfo) -> None [extrait de setPort.__doc__] |
setPortName(self, name: str) -> None | setPortName(self, name: str) -> None [extrait de setPortName.__doc__] |
setReadBufferSize(self, size: int) -> None | setReadBufferSize(self, size: int) -> None [extrait de setReadBufferSize.__doc__] |
setRequestToSend(self, set: bool) -> bool | setRequestToSend(self, set: bool) -> bool [extrait de setRequestToSend.__doc__] |
setStopBits(self, stopBits: PySide6.QtSerialPort.QSerialPort.StopBits) -> bool | setStopBits(self, stopBits: PySide6.QtSerialPort.QSerialPort.StopBits) -> bool [extrait de setStopBits.__doc__] |
StopBits | |
stopBits(self) -> PySide6.QtSerialPort.QSerialPort.StopBits | stopBits(self) -> PySide6.QtSerialPort.QSerialPort.StopBits [extrait de stopBits.__doc__] |
stopBitsChanged | |
tr | |
waitForBytesWritten(self, msecs: int = 30000) -> bool | waitForBytesWritten(self, msecs: int = 30000) -> bool [extrait de waitForBytesWritten.__doc__] |
waitForReadyRead(self, msecs: int = 30000) -> bool | waitForReadyRead(self, msecs: int = 30000) -> bool [extrait de waitForReadyRead.__doc__] |
writeData(self, data: bytes, maxSize: int) -> int | writeData(self, data: bytes, maxSize: int) -> int [extrait de writeData.__doc__] |
Améliorations / Corrections
Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.
Emplacement :
Description des améliorations :