QSerialPortInfo¶
Provides information about existing serial ports. More…
Synopsis¶
Functions¶
def
description
()def
hasProductIdentifier
()def
hasVendorIdentifier
()def
isNull
()def
manufacturer
()def
portName
()def
productIdentifier
()def
serialNumber
()def
swap
(other)def
systemLocation
()def
vendorIdentifier
()
Static functions¶
def
availablePorts
()def
standardBaudRates
()
Detailed Description¶
Use the static functions to generate a list of QSerialPortInfo
objects. Each QSerialPortInfo
object in the list represents a single serial port and can be queried for the port name, system location, description, and manufacturer. The QSerialPortInfo
class can also be used as an input parameter for the setPort() method of the QSerialPort
class.
See also
- class PySide6.QtSerialPort.QSerialPortInfo¶
PySide6.QtSerialPort.QSerialPortInfo(port)
PySide6.QtSerialPort.QSerialPortInfo(other)
PySide6.QtSerialPort.QSerialPortInfo(name)
- Parameters
name – str
Constructs an empty QSerialPortInfo
object.
See also
Constructs a QSerialPortInfo
object from serial port
.
Constructs a copy of other
.
Constructs a QSerialPortInfo
object from serial port name
.
This constructor finds the relevant serial port among the available ones according to the port name name
, and constructs the serial port info instance for that port.
- static PySide6.QtSerialPort.QSerialPortInfo.availablePorts()¶
- Return type
Returns a list of available serial ports on the system.
- PySide6.QtSerialPort.QSerialPortInfo.description()¶
- Return type
str
Returns the description string of the serial port, if available; otherwise returns an empty string.
See also
- PySide6.QtSerialPort.QSerialPortInfo.hasProductIdentifier()¶
- Return type
bool
Returns true
if there is a valid 16-bit
product number present; otherwise returns false
.
- PySide6.QtSerialPort.QSerialPortInfo.hasVendorIdentifier()¶
- Return type
bool
Returns true
if there is a valid 16-bit
vendor number present; otherwise returns false
.
- PySide6.QtSerialPort.QSerialPortInfo.isNull()¶
- Return type
bool
Returns whether this QSerialPortInfo
object holds a serial port definition.
- PySide6.QtSerialPort.QSerialPortInfo.manufacturer()¶
- Return type
str
Returns the manufacturer string of the serial port, if available; otherwise returns an empty string.
See also
- PySide6.QtSerialPort.QSerialPortInfo.portName()¶
- Return type
str
Returns the name of the serial port.
See also
- PySide6.QtSerialPort.QSerialPortInfo.productIdentifier()¶
- Return type
quint16
Returns the 16-bit product number for the serial port, if available; otherwise returns zero.
- PySide6.QtSerialPort.QSerialPortInfo.serialNumber()¶
- Return type
str
Returns the serial number string of the serial port, if available; otherwise returns an empty string.
- static PySide6.QtSerialPort.QSerialPortInfo.standardBaudRates()¶
- Return type
Returns a list of available standard baud rates supported by the target platform.
- PySide6.QtSerialPort.QSerialPortInfo.swap(other)¶
- Parameters
Swaps QSerialPortInfo
other
with this QSerialPortInfo
. This operation is very fast and never fails.
- PySide6.QtSerialPort.QSerialPortInfo.systemLocation()¶
- Return type
str
Returns the system location of the serial port.
See also
- PySide6.QtSerialPort.QSerialPortInfo.vendorIdentifier()¶
- Return type
quint16
Returns the 16-bit vendor number for the serial port, if available; otherwise returns zero.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.