PythonQt.QtXmlPatterns.QXmlNodeModelIndex · declarations 001
Back to PythonQt.QtXmlPatterns.QXmlNodeModelIndex
Attribute
instance-attribute
Attribute: Any
Comment
instance-attribute
Comment: Any
DocumentOrder
instance-attribute
DocumentOrder: 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
Element
instance-attribute
Element: Any
Follows
instance-attribute
Follows: Any
Is
instance-attribute
Is: Any
Namespace
instance-attribute
Namespace: Any
NodeKind
instance-attribute
NodeKind: 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
Precedes
instance-attribute
Precedes: Any
ProcessingInstruction
instance-attribute
ProcessingInstruction: Any
additionalData
additionalData() -> int
X.additionalData() -> int
Supplemental documentation: Qt 5 reference:
qint64 QXmlNodeModelIndex::additionalData() const
Returns the second data value. The node index holds two data values. data() returns the first one.
See also data().
Upstream PySide2 reference signatures (binding differences may apply):
additionalData(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qxmlnodemodelindex.html#additionalData
data
data() -> int
X.data() -> int
Supplemental documentation: Qt 5 reference:
qint64 QXmlNodeModelIndex::data() const
Returns the first data value. The node index holds two data values. additionalData() returns the second one.
See also additionalData().
Upstream PySide2 reference signatures (binding differences may apply):
data(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qxmlnodemodelindex.html#data
isNull
isNull() -> bool
X.isNull() -> bool
Supplemental documentation: Qt 5 reference:
bool QXmlNodeModelIndex::isNull() const
Returns true if this QXmlNodeModelIndex is a default constructed value, otherwise false.
A null QXmlNodeModelIndex doesn't represent any node and cannot be used in conjunction with QAbstractXmlNodeModel.
Upstream PySide2 reference signatures (binding differences may apply):
isNull(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qxmlnodemodelindex.html#isNull
model
model() -> Any
X.model() -> PythonQt.QtXmlPatterns.QAbstractXmlNodeModel
Supplemental documentation: Qt 5 reference:
const QAbstractXmlNodeModel *QXmlNodeModelIndex::model() const
Returns the QAbstractXmlNodeModel that this node index refers to. QXmlNodeModelIndex does not own QAbstractXmlNodeModel and does not keep track of its lifetime, so this pointer will dangle if the QAbstractXmlNodeModel is deallocated first.
There is no setter for the node model because instances of QXmlNodeModelIndex instances are only created with QAbstractXmlNodeModel::createIndex().
Upstream PySide2 reference signatures (binding differences may apply):
model(self) -> PySide2.QtXmlPatterns.QAbstractXmlNodeModel
Source: https://doc.qt.io/archives/qt-5.15/qxmlnodemodelindex.html#model