QQmlSA Namespace
Provides tools for static analysis on QML programs. More...
| Header: | #include <qqmljsloggingutils.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
| Status: | Technology preview |
This namespace is in technology preview and is subject to change.
Types
(technology preview) enum class | AccessSemantics { Reference, Value, None, Sequence } |
(technology preview) enum class | BindingType { Invalid, BoolLiteral, NumberLiteral, StringLiteral, RegExpLiteral, …, GroupProperty } |
(technology preview) enum class | MethodType { Signal, Slot, Method, StaticMethod } |
| enum class | ScopeType { JSFunctionScope, JSLexicalScope, QMLScope, GroupedPropertyScope, AttachedPropertyScope, …, SignalHandlerFunctionScope } |
(technology preview) enum class | ScriptBindingKind { Invalid, PropertyBinding, SignalHandler, ChangeHandler } |
(technology preview) enum class | WarningSeverity { Error, Warning, Info, Disable } |
Detailed Description
Type Documentation
[technology preview] enum class QQmlSA::AccessSemantics
This enum is in technology preview and is subject to change.
Describes how a type is accessed and shared.
| Constant | Value | Description |
|---|---|---|
QQmlSA::AccessSemantics::Reference | 0 | The type behaves like an Object type |
QQmlSA::AccessSemantics::Value | 1 | The type behaves like a Value type |
QQmlSA::AccessSemantics::None | 2 | The type is a namespace, or is invalid |
QQmlSA::AccessSemantics::Sequence | 3 | The type behaves like a Sequence type |
See also The QML Type System.
[technology preview] enum class QQmlSA::BindingType
This enum is in technology preview and is subject to change.
Describes the type of a QQmlSA::Binding.
| Constant | Value | Description |
|---|---|---|
QQmlSA::BindingType::Invalid | 0 | There is no binding |
QQmlSA::BindingType::BoolLiteral | 1 | The binding is a bool literal |
QQmlSA::BindingType::NumberLiteral | 2 | The binding is a number literal |
QQmlSA::BindingType::StringLiteral | 3 | The binding is a string literal |
QQmlSA::BindingType::RegExpLiteral | 4 | The binding is a regular expression literal |
QQmlSA::BindingType::Null | 5 | The binding is a null literal |
QQmlSA::BindingType::Translation | 6 | The binding is a translation |
QQmlSA::BindingType::TranslationById | 7 | The binding is a translation by id |
QQmlSA::BindingType::Script | 8 | The binding is a regular script |
QQmlSA::BindingType::Object | 9 | The binging is an Object |
QQmlSA::BindingType::Interceptor | 10 | The binding is an interceptor that can intercept writes to properties such as Behavior |
QQmlSA::BindingType::ValueSource | 11 | The binging is a property value source |
QQmlSA::BindingType::AttachedProperty | 12 | The binding is an attached object |
QQmlSA::BindingType::GroupProperty | 13 | The binding is a grouped property |
[technology preview] enum class QQmlSA::MethodType
This enum is in technology preview and is subject to change.
Describes the type of a QQmlSA::Method.
| Constant | Value | Description |
|---|---|---|
QQmlSA::MethodType::Signal | 0 | The method is a signal |
QQmlSA::MethodType::Slot | 1 | The method is a slot |
QQmlSA::MethodType::Method | 2 | The method is a Q_INVOKABLE method |
QQmlSA::MethodType::StaticMethod | 3 | The method is a Q_INVOKABLE static method |
enum class QQmlSA::ScopeType
Describes the type of QML scope.
| Constant | Value | Description |
|---|---|---|
QQmlSA::ScopeType::JSFunctionScope | 0 | The scope is a JavaScript function:
|
QQmlSA::ScopeType::JSLexicalScope | 1 | The scope is a JavaScript lexical scope:
|
QQmlSA::ScopeType::QMLScope | 2 | The scope is a QML Object:
|
QQmlSA::ScopeType::GroupedPropertyScope | 3 | The scope is a grouped property:
|
QQmlSA::ScopeType::AttachedPropertyScope | 4 | The scope is an attached property:
|
QQmlSA::ScopeType::EnumScope | 5 | The scope is a QML enum:
|
QQmlSA::ScopeType::BindingFunctionScope (since Qt 6.11) | 6 | The scope represents the expression of a binding:
|
Before Qt 6.11, this was reported as a JSFunctionScope
| Constant | Value | Description |
|---|---|---|
QQmlSA::ScopeType::SignalHandlerFunctionScope (since Qt 6.11) | 7 | The scope represents a function used as a signal handler:
|
Before Qt 6.11, this was reported as a JSFunctionScope
Each entry is shown with an example scope of the matching type in QML code.
[technology preview] enum class QQmlSA::ScriptBindingKind
This enum is in technology preview and is subject to change.
Describes the script type of a QQmlSA::Binding of type Script.
| Constant | Value | Description |
|---|---|---|
QQmlSA::ScriptBindingKind::Invalid | 0 | The binding has an invalid script |
QQmlSA::ScriptBindingKind::PropertyBinding | 1 | The binding is bound to a property |
QQmlSA::ScriptBindingKind::SignalHandler | 2 | The binding is a signal handler |
QQmlSA::ScriptBindingKind::ChangeHandler | 3 | The binding is a change handler |
[technology preview] enum class QQmlSA::WarningSeverity
This enum is in technology preview and is subject to change.
Holds the possible severity levels of diagnostics messages for a logging category.
| Constant | Value | Description |
|---|---|---|
QQmlSA::WarningSeverity::Error | 103 | Messages emitted by this logging category will cause an error. |
QQmlSA::WarningSeverity::Warning | 102 | Messages emitted by this logging category are warnings. No error is produced unless the MaxWarnings setting is set and exceeded. |
QQmlSA::WarningSeverity::Info | 101 | Messages emitted by this logging category are purely informative and do not count towards MaxWarnings. |
QQmlSA::WarningSeverity::Disable | 100 | This logging category will not emit any messages. |
This enum was introduced in Qt 6.12.