QXmlLocatorclass provides the XML handler classes with information about the parsing position within a file. 更多 …
The reader reports a
QXmlLocatorto the content handler before it starts to parse the document. This is done with thesetDocumentLocator()function. The handler classes can now use this locator to get the position (lineNumber()andcolumnNumber()) that the reader has reached.
QXmlLocator
¶
构造函数。
PySide2.QtXml.QXmlLocator.
columnNumber
(
)
¶
int
Returns the column number (starting at 1) or -1 if there is no column number available.
PySide2.QtXml.QXmlLocator.
lineNumber
(
)
¶
int
Returns the line number (starting at 1) or -1 if there is no line number available.