이 페이지에서

QQmlSA Namespace

QML 프로그램에 대한 정적 분석 도구를 제공합니다. 더 보기...

헤더: #include <qqmljsloggingutils.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)
target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler)
상태: 기술 미리 보기

이 네임스페이스는 기술 미리보기 단계에 있으며 변경될 수 있습니다.

클래스

(technology preview) class Binding
(technology preview) class DocumentEdit
(technology preview) class Element
(technology preview) class ElementPass
(technology preview) class FixSuggestion
(technology preview) class GenericPass
(technology preview) class LintPlugin
(technology preview) class LoggerWarningId
(technology preview) class Method
(technology preview) class PassManager
(technology preview) class Property
(technology preview) class PropertyPass
(technology preview) class SourceLocation

형식

(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 }

상세 설명

클래스

클래스 Binding

특정 유형에 대한 단일 QML 속성 바인딩을 나타냅니다. 더 보기...

class DocumentEdit

문서에 대한 단일 편집을 나타냅니다. 더 보기...

Element 클래스

QML 타입을 나타냅니다. 더 보기...

class ElementPass

요소에 대한 모든 정적 분석 패스의 기본 클래스입니다. 더 보기...

class FixSuggestion

소스 코드의 문제에 대한 수정 제안을 나타냅니다. 더 보기...

class GenericPass

정적 분석 패스의 기본 클래스입니다. 더 보기...

class LintPlugin

모든 정적 분석 플러그인의 기본 클래스입니다. 더 보기...

class LoggerWarningId

QQmlSA 프레임워크에서 경고 범주를 고유하게 식별하기 위해 문자열 리터럴을 감싸는 래퍼입니다. 더 보기...

class Method

QML 메서드를 나타냅니다. 더 보기...

class PassManager

정적 분석 패스를 통해 요소와 그 자식 요소를 분석할 수 있습니다. 더 보기...

class Property

QML 속성을 나타냅니다. 더 보기...

class PropertyPass

속성에 대한 모든 정적 분석 패스의 기본 클래스입니다. 더 보기...

class SourceLocation

소스 코드 내의 위치 또는 영역을 나타냅니다. 더 보기...

유형 문서

[technology preview] enum class QQmlSA::AccessSemantics

이 열거형은 기술 미리보기 단계에 있으며, 향후 변경될 수 있습니다.

유형에 대한 액세스 및 공유 방식을 설명합니다.

상수값설명
QQmlSA::AccessSemantics::Reference0이 유형은 Object 유형처럼 동작합니다.
QQmlSA::AccessSemantics::Value1이 타입은 Value 타입처럼 동작합니다
QQmlSA::AccessSemantics::None2이 타입은 네임스페이스이거나 유효하지 않습니다
QQmlSA::AccessSemantics::Sequence3이 타입 은 시퀀스(Sequence) 타입처럼 동작합니다

참조: QML 타입 시스템.

[technology preview] enum class QQmlSA::BindingType

이 열거형은 기술 미리보기 단계에 있으며, 향후 변경될 수 있습니다.

QQmlSA::Binding 의 유형을 설명합니다.

상수값설명
QQmlSA::BindingType::Invalid0바인딩이 없습니다.
QQmlSA::BindingType::BoolLiteral1바인딩이 없음
QQmlSA::BindingType::NumberLiteral2바인딩이 숫자 리터럴입니다
QQmlSA::BindingType::StringLiteral3바인딩은 문자열 리터럴입니다
QQmlSA::BindingType::RegExpLiteral4바인딩은 정규식 리터럴입니다
QQmlSA::BindingType::Null5바인딩은 null 리터럴입니다
QQmlSA::BindingType::Translation6바인딩은 변환 입니다
QQmlSA::BindingType::TranslationById7바인딩은 ID를 통한 변환입니다
QQmlSA::BindingType::Script8바인딩은 정규 스크립트입니다
QQmlSA::BindingType::Object9바인딩은 객체입니다
QQmlSA::BindingType::Interceptor10바인딩은 다음과 같은 속성에 대한 쓰기 작업을 가로챌 수 있는 인터셉터입니다. Behavior
QQmlSA::BindingType::ValueSource11바인딩은 속성 값 소스입니다
QQmlSA::BindingType::AttachedProperty12이 바인딩은 연결된 객체입니다
QQmlSA::BindingType::GroupProperty13바인딩은 그룹화된 속성입니다

[technology preview] enum class QQmlSA::MethodType

이 열거형은 기술 미리보기 단계에 있으며 변경될 수 있습니다.

QQmlSA::Method 의 유형을 설명합니다.

상수값설명
QQmlSA::MethodType::Signal0이 메서드는 신호입니다.
QQmlSA::MethodType::Slot1이 메서드는 시그널입니다. 이 메서드는 슬롯입니다.
QQmlSA::MethodType::Method2이 메서드는 ` Q_INVOKABLE ` 메서드입니다
QQmlSA::MethodType::StaticMethod3이 메서드는 정적 메서드 Q_INVOKABLE 입니다

enum class QQmlSA::ScopeType

QML 범위의 유형을 설명합니다.

상수값설명
QQmlSA::ScopeType::JSFunctionScope0범위가 JavaScript 함수인 경우:
Item {
    function f() : int { <- begin
        return 1
    } <- end
}
QQmlSA::ScopeType::JSLexicalScope1범위는 자바스크립트의 어휘 범위입니다:
property int i: { <- begin
    let a = 1
    { <- begin
        console.log("hello")
    } <- end
    return a
} <- end
QQmlSA::ScopeType::QMLScope2범위는 QML 객체입니다:
Item { <- begin
    x: 50
} <- end
QQmlSA::ScopeType::GroupedPropertyScope3범위는 그룹화된 속성입니다:
Text {
    font { <- begin
        pixelSize: 12
        bold: true
    } <- end
}
QQmlSA::ScopeType::AttachedPropertyScope4스코프는 부착 속성입니다:
Item {
    Component.onCompleted: console.log("Hello")
    ^^^^^^^^^
             \ Scope of attached property Component
}
QQmlSA::ScopeType::EnumScope5스코프는 QML 열거형입니다:
enum E { <- begin
    A,
    B,
    C
} <- end
QQmlSA::ScopeType::BindingFunctionScope (since Qt 6.11)6스코프는 바인딩의 표현을 나타냅니다:
Item {
    width: <- begin 10 +
        2 *parent.width <- end
}

Qt 6.11 이전에는 이 항목이 JSFunctionScope로 보고되었습니다

상수값설명
QQmlSA::ScopeType::SignalHandlerFunctionScope (since Qt 6.11)7이 스코프는 신호 핸들러로 사용되는 함수를 나타냅니다:
Timer {
    onTriggered: <- begin console.log("hi") <- end
}

Qt 6.11 이전에는 이 항목이 JSFunctionScope로 보고되었습니다

각 항목은 QML 코드에서 해당 유형에 해당하는 예제 스코프와 함께 표시됩니다.

[technology preview] enum class QQmlSA::ScriptBindingKind

이 열거형은 기술 미리보기 단계에 있으며 변경될 수 있습니다.

Script 유형의 QQmlSA::Binding 의 스크립트 유형을 설명합니다.

상수상수설명
QQmlSA::ScriptBindingKind::Invalid0바인딩에 잘못된 스크립트가 있습니다.
QQmlSA::ScriptBindingKind::PropertyBinding1바인딩에 유효하지 않은 스크립트가 있습니다.
QQmlSA::ScriptBindingKind::SignalHandler2바인딩이 신호 핸들러입니다
QQmlSA::ScriptBindingKind::ChangeHandler3바인딩이 변경 핸들러입니다

[technology preview] enum class QQmlSA::WarningSeverity

이 열거형은 기술 미리보기 단계에 있으며 변경될 수 있습니다.

로깅 범주에 대한 진단 메시지의 가능한 심각도 수준을 포함합니다.

상수값설명
QQmlSA::WarningSeverity::ErrorQtMsgType::QtCriticalMsg이 로깅 범주에서 출력되는 메시지는 오류를 발생시킵니다.
QQmlSA::WarningSeverity::WarningQtMsgType::QtWarningMsg이 로깅 범주에서 출력되는 메시지는 경고입니다. MaxWarnings 설정이 지정되어 있고 그 수치를 초과하지 않는 한 오류는 발생하지 않습니다.
QQmlSA::WarningSeverity::InfoQtMsgType::QtInfoMsg이 로깅 범주에서 출력되는 메시지는 순전히 정보 제공용이며 MaxWarnings에 포함되지 않습니다.
QQmlSA::WarningSeverity::Disable100이 로깅 범주는 어떠한 메시지도 출력하지 않습니다.

이 열거형은 Qt 6.12에서 도입되었습니다.

© 2026 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.