Skip to content

PythonQt.QtXmlPatterns.QAbstractMessageHandler · declarations 001

Back to PythonQt.QtXmlPatterns.QAbstractMessageHandler

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtXmlPatterns.QAbstractMessageHandler.destroyed; argument details are not documented.

handleMessage

handleMessage(type: Any, description: str, identifier: Any, sourceLocation: Any) -> None

X.handleMessage(type, description, identifier, sourceLocation)

Supplemental documentation: Qt 5 reference:

[pure virtual protected] void QAbstractMessageHandler::handleMessage(QtMsgType type, const QString \&description, const QUrl \&identifier \= QUrl(), const QSourceLocation \&sourceLocation \= QSourceLocation())

This function must be implemented by the sub-class. message() will call this function, passing in its parameters, type, description, identifier and sourceLocation unmodified.

This function can potentially be called from multiple threads. It's the reimplementation's responsibility to ensure thread safety.

Upstream PySide2 reference signatures (binding differences may apply):

handleMessage(self, type: PySide2.QtCore.QtMsgType, description: str, identifier: PySide2.QtCore.QUrl, sourceLocation: PySide2.QtXmlPatterns.QSourceLocation) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractmessagehandler.html#handleMessage

message

message(type: Any, description: str, identifier: Any, sourceLocation: Any) -> None

X.message(type, description, identifier, sourceLocation)

Supplemental documentation: Qt 5 reference:

void QAbstractMessageHandler::message(QtMsgType type, const QString \&description, const QUrl \&identifier \= QUrl(), const QSourceLocation \&sourceLocation \= QSourceLocation())

Sends a message to this message handler. type is the kind of message being sent. description is the message content. The identifier is a URI that identifies the message and is the key to interpreting the other arguments.

Typically, this class is used for reporting errors, as is the case for QXmlQuery, which uses a QAbstractMessageHandler to report compile and runtime XQuery errors. Hence, using a QUrl as the message identifier is was inspired by the explanation of error handling in the XQuery language. Because the identifier is composed of a namespace URI and a local part, identifiers with the same local part are unique. The caller is responsible for ensuring that identifier is either a valid QUrl or a default constructed QUrl.

sourceLocation identifies a location in a resource (i.e., file or document) where the need for reporting a message was detected.

This function unconditionally calls handleMessage(), passing all its parameters unmodified.

See also http://www.w3.org/TR/xquery/#errors.

Upstream PySide2 reference signatures (binding differences may apply):

message(self, type: PySide2.QtCore.QtMsgType, description: str, identifier: PySide2.QtCore.QUrl=..., sourceLocation: PySide2.QtXmlPatterns.QSourceLocation=...) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractmessagehandler.html#message

objectNameChanged

objectNameChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtXmlPatterns.QAbstractMessageHandler.objectNameChanged; argument details are not documented.