Skip to content

PythonQt.QtCore.QDataStream · declarations 001

Back to PythonQt.QtCore.QDataStream

BigEndian instance-attribute

BigEndian: Any

ByteOrder instance-attribute

ByteOrder: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

DoublePrecision instance-attribute

DoublePrecision: Any

FloatingPointPrecision instance-attribute

FloatingPointPrecision: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

LittleEndian instance-attribute

LittleEndian: Any

Ok instance-attribute

Ok: Any

Qt_1_0 instance-attribute

Qt_1_0: Any

Qt_2_0 instance-attribute

Qt_2_0: Any

Qt_2_1 instance-attribute

Qt_2_1: Any

Qt_3_0 instance-attribute

Qt_3_0: Any

Qt_3_1 instance-attribute

Qt_3_1: Any

Qt_3_3 instance-attribute

Qt_3_3: Any

Qt_4_0 instance-attribute

Qt_4_0: Any

Qt_4_1 instance-attribute

Qt_4_1: Any

Qt_4_2 instance-attribute

Qt_4_2: Any

Qt_4_3 instance-attribute

Qt_4_3: Any

Qt_4_4 instance-attribute

Qt_4_4: Any

Qt_4_5 instance-attribute

Qt_4_5: Any

Qt_4_6 instance-attribute

Qt_4_6: Any

Qt_4_7 instance-attribute

Qt_4_7: Any

Qt_4_8 instance-attribute

Qt_4_8: Any

Qt_4_9 instance-attribute

Qt_4_9: Any

Qt_5_0 instance-attribute

Qt_5_0: Any

Qt_5_1 instance-attribute

Qt_5_1: Any

Qt_5_2 instance-attribute

Qt_5_2: Any

Qt_5_3 instance-attribute

Qt_5_3: Any

Qt_5_4 instance-attribute

Qt_5_4: Any

Qt_5_5 instance-attribute

Qt_5_5: Any

Qt_5_6 instance-attribute

Qt_5_6: Any

Qt_DefaultCompiledVersion instance-attribute

Qt_DefaultCompiledVersion: Any

ReadCorruptData instance-attribute

ReadCorruptData: Any

ReadPastEnd instance-attribute

ReadPastEnd: Any

SinglePrecision instance-attribute

SinglePrecision: Any

Status instance-attribute

Status: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

Version instance-attribute

Version: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

WriteFailed instance-attribute

WriteFailed: Any

atEnd

atEnd() -> bool

X.atEnd() -> bool

Supplemental documentation: Qt 5 reference:

bool QDataStream::atEnd() const

Returns true if the I/O device has reached the end position (end of the stream or file) or if there is no I/O device set; otherwise returns false.

See also QIODevice::atEnd().

Upstream PySide2 reference signatures (binding differences may apply):

atEnd(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#atEnd

byteOrder

byteOrder() -> Any

X.byteOrder()

Supplemental documentation: Qt 5 reference:

QDataStream::ByteOrder QDataStream::byteOrder() const

Returns the current byte order setting -- either BigEndian or LittleEndian.

See also setByteOrder().

Upstream PySide2 reference signatures (binding differences may apply):

byteOrder(self) -> PySide2.QtCore.QDataStream.ByteOrder

Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#byteOrder

device

device() -> Any

X.device() -> PythonQt.QtCore.QIODevice

Supplemental documentation: Qt 5 reference:

QIODevice *QDataStream::device() const

Returns the I/O device currently set, or nullptr if no device is currently set.

See also setDevice().

Upstream PySide2 reference signatures (binding differences may apply):

device(self) -> PySide2.QtCore.QIODevice

Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#device

floatingPointPrecision

floatingPointPrecision() -> Any

X.floatingPointPrecision()

Supplemental documentation: Qt 5 reference:

QDataStream::FloatingPointPrecision QDataStream::floatingPointPrecision() const

Returns the floating point precision of the data stream.

This function was introduced in Qt 4.6.

See also FloatingPointPrecision and setFloatingPointPrecision().

Upstream PySide2 reference signatures (binding differences may apply):

floatingPointPrecision(self) -> PySide2.QtCore.QDataStream.FloatingPointPrecision

Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#floatingPointPrecision