Participer au site avec un Tip
Rechercher
 

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 :

Module « PySide6.QtSerialPort »

Classe « QSerialPort »

Informations générales

Héritage

builtins.object
    Object
        QIODeviceBase
builtins.object
    Object
        QObject
            QIODevice
                QSerialPort

Définition

class QSerialPort(QIODevice):

Description [extrait de QSerialPort.__doc__]

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

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
AllDirectionsPySide6.QtSerialPort.QSerialPort.Direction.AllDirections
AppendPySide6.QtCore.QIODeviceBase.OpenModeFlag.Append
Baud115200PySide6.QtSerialPort.QSerialPort.BaudRate.Baud115200
Baud1200PySide6.QtSerialPort.QSerialPort.BaudRate.Baud1200
Baud19200PySide6.QtSerialPort.QSerialPort.BaudRate.Baud19200
Baud2400PySide6.QtSerialPort.QSerialPort.BaudRate.Baud2400
Baud38400PySide6.QtSerialPort.QSerialPort.BaudRate.Baud38400
Baud4800PySide6.QtSerialPort.QSerialPort.BaudRate.Baud4800
Baud57600PySide6.QtSerialPort.QSerialPort.BaudRate.Baud57600
Baud9600PySide6.QtSerialPort.QSerialPort.BaudRate.Baud9600
ClearToSendSignalPySide6.QtSerialPort.QSerialPort.PinoutSignal.ClearToSendSignal
Data5PySide6.QtSerialPort.QSerialPort.DataBits.Data5
Data6PySide6.QtSerialPort.QSerialPort.DataBits.Data6
Data7PySide6.QtSerialPort.QSerialPort.DataBits.Data7
Data8PySide6.QtSerialPort.QSerialPort.DataBits.Data8
DataCarrierDetectSignalPySide6.QtSerialPort.QSerialPort.PinoutSignal.DataCarrierDetectSignal
DataSetReadySignalPySide6.QtSerialPort.QSerialPort.PinoutSignal.DataSetReadySignal
DataTerminalReadySignalPySide6.QtSerialPort.QSerialPort.PinoutSignal.DataTerminalReadySignal
DeviceNotFoundErrorPySide6.QtSerialPort.QSerialPort.SerialPortError.DeviceNotFoundError
EvenParityPySide6.QtSerialPort.QSerialPort.Parity.EvenParity
ExistingOnlyPySide6.QtCore.QIODeviceBase.OpenModeFlag.ExistingOnly
HardwareControlPySide6.QtSerialPort.QSerialPort.FlowControl.HardwareControl
InputPySide6.QtSerialPort.QSerialPort.Direction.Input
MarkParityPySide6.QtSerialPort.QSerialPort.Parity.MarkParity
NewOnlyPySide6.QtCore.QIODeviceBase.OpenModeFlag.NewOnly
NoErrorPySide6.QtSerialPort.QSerialPort.SerialPortError.NoError
NoFlowControlPySide6.QtSerialPort.QSerialPort.FlowControl.NoFlowControl
NoParityPySide6.QtSerialPort.QSerialPort.Parity.NoParity
NoSignalPySide6.QtSerialPort.QSerialPort.PinoutSignal.NoSignal
NotOpenPySide6.QtCore.QIODeviceBase.OpenModeFlag.NotOpen
NotOpenErrorPySide6.QtSerialPort.QSerialPort.SerialPortError.NotOpenError
OddParityPySide6.QtSerialPort.QSerialPort.Parity.OddParity
OneAndHalfStopPySide6.QtSerialPort.QSerialPort.StopBits.OneAndHalfStop
OneStopPySide6.QtSerialPort.QSerialPort.StopBits.OneStop
OpenErrorPySide6.QtSerialPort.QSerialPort.SerialPortError.OpenError
OutputPySide6.QtSerialPort.QSerialPort.Direction.Output
PermissionErrorPySide6.QtSerialPort.QSerialPort.SerialPortError.PermissionError
ReadErrorPySide6.QtSerialPort.QSerialPort.SerialPortError.ReadError
ReadOnlyPySide6.QtCore.QIODeviceBase.OpenModeFlag.ReadOnly
ReadWritePySide6.QtCore.QIODeviceBase.OpenModeFlag.ReadWrite
RequestToSendSignalPySide6.QtSerialPort.QSerialPort.PinoutSignal.RequestToSendSignal
ResourceErrorPySide6.QtSerialPort.QSerialPort.SerialPortError.ResourceError
RingIndicatorSignalPySide6.QtSerialPort.QSerialPort.PinoutSignal.RingIndicatorSignal
SecondaryReceivedDataSignalPySide6.QtSerialPort.QSerialPort.PinoutSignal.SecondaryReceivedDataSignal
SecondaryTransmittedDataSignalPySide6.QtSerialPort.QSerialPort.PinoutSignal.SecondaryTransmittedDataSignal
SoftwareControlPySide6.QtSerialPort.QSerialPort.FlowControl.SoftwareControl
SpaceParityPySide6.QtSerialPort.QSerialPort.Parity.SpaceParity
staticMetaObject<PySide6.QtCore.QMetaObject object at 0x7f40db140380>
TextPySide6.QtCore.QIODeviceBase.OpenModeFlag.Text
TimeoutErrorPySide6.QtSerialPort.QSerialPort.SerialPortError.TimeoutError
TruncatePySide6.QtCore.QIODeviceBase.OpenModeFlag.Truncate
TwoStopPySide6.QtSerialPort.QSerialPort.StopBits.TwoStop
UnbufferedPySide6.QtCore.QIODeviceBase.OpenModeFlag.Unbuffered
UnknownErrorPySide6.QtSerialPort.QSerialPort.SerialPortError.UnknownError
UnsupportedOperationErrorPySide6.QtSerialPort.QSerialPort.SerialPortError.UnsupportedOperationError
WriteErrorPySide6.QtSerialPort.QSerialPort.SerialPortError.WriteError
WriteOnlyPySide6.QtCore.QIODeviceBase.OpenModeFlag.WriteOnly

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__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__]

Méthodes héritées de la classe QIODevice

__init_subclass__, __subclasshook__, atEnd, commitTransaction, currentReadChannel, currentWriteChannel, errorString, getChar, isOpen, isReadable, isTextModeEnabled, isTransactionStarted, isWritable, openMode, peek, pos, putChar, read, readAll, readChannelCount, readLine, reset, rollbackTransaction, seek, setCurrentReadChannel, setCurrentWriteChannel, setErrorString, setOpenMode, setTextModeEnabled, size, skip, skipData, startTransaction, ungetChar, write, writeChannelCount

Méthodes héritées de la classe QIODeviceBase

__copy__, __init_subclass__, __subclasshook__, OpenMode, OpenModeFlag

Méthodes héritées de la classe QObject

__getattribute__, __init_subclass__, __repr__, __subclasshook__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, event, eventFilter, findChild, findChildren, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, parent, property, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent

Méthodes héritées de la classe Object

__getattribute__, __init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__dir__, __format__, __hash__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__