QPropertyBindingError Class | Qt Core (original) (raw)

Header: #include
CMake: find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
Since: Qt 6.0

Public Types

enum Type { NoError, BindingLoop, EvaluationError, UnknownError }

Public Functions

Detailed Description

QPropertyBindingError is used by the property system to report errors that occurred when a binding was evaluated. Use type() to query which error occurred, and description() to extract an error message which might contain more details. If there is no error, QPropertyBindingError has type QPropertyBindingError::NoError and hasError() returns false.

Member Type Documentation

enum QPropertyBindingError::Type

This enum specifies which error occurred.

Constant Value Description
QPropertyBindingError::NoError 0 No error occurred while evaluating the binding.
QPropertyBindingError::BindingLoop 1 Binding evaluation was stopped because a property depended on its own value.
QPropertyBindingError::EvaluationError 2 Binding evaluation was stopped for any other reason than a binding loop. For example, this value is used in the QML engine when an exception occurs while a binding is evaluated.
QPropertyBindingError::UnknownError 3 A generic error type used when neither of the other values is suitable. Calling description() might provide details.

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.