QNdefNfcTextRecord#

The QNdefNfcTextRecord class provides an NFC RTD-Text. More

Synopsis#

Functions#

Detailed Description#

RTD-Text encapsulates a user displayable text record.

class PySide6.QtNfc.QNdefNfcTextRecord#

PySide6.QtNfc.QNdefNfcTextRecord(QNdefNfcTextRecord)

PySide6.QtNfc.QNdefNfcTextRecord(other)

Parameters

Constructs an empty NFC text record of type NfcRtd .

Constructs a new NFC text record that is a copy of other.

PySide6.QtNfc.QNdefNfcTextRecord.Encoding#

This enum describes the text encoding standard used.

Constant

Description

QNdefNfcTextRecord.Utf8

The text is encoded with UTF-8.

QNdefNfcTextRecord.Utf16

The text is encoding with UTF-16.

PySide6.QtNfc.QNdefNfcTextRecord.encoding()#
Return type

Encoding

Returns the encoding of the contents.

See also

setEncoding()

PySide6.QtNfc.QNdefNfcTextRecord.locale()#
Return type

str

Returns the locale of the text record.

See also

setLocale()

PySide6.QtNfc.QNdefNfcTextRecord.setEncoding(encoding)#
Parameters

encodingEncoding

Sets the enconding of the contents to encoding.

See also

encoding()

PySide6.QtNfc.QNdefNfcTextRecord.setLocale(locale)#
Parameters

locale – str

Sets the locale of the text record to locale.

See also

locale()

PySide6.QtNfc.QNdefNfcTextRecord.setText(text)#
Parameters

text – str

Sets the contents of the text record to text.

See also

text()

PySide6.QtNfc.QNdefNfcTextRecord.text()#
Return type

str

Returns the contents of the text record as a string.

See also

setText()