Skip to content

slint::interpreter::Diagnostic Struct

struct Diagnostic;
C++
#include <slint.h>
C++

Diagnostic describes the aspects of either a warning or an error, along with its location and a description. Diagnostics are typically returned by slint::interpreter::ComponentCompiler::diagnostics() in a vector.

SharedString slint::interpreter::Diagnostic::message

The message describing the warning or error.

SharedString slint::interpreter::Diagnostic::source_file

The path to the source file where the warning or error is located.

uintptr_t slint::interpreter::Diagnostic::line

The line within the source file. Line numbers start at 1.

uintptr_t slint::interpreter::Diagnostic::column

The column within the source file. Column numbers start at 1.

DiagnosticLevel slint::interpreter::Diagnostic::level

The level of the diagnostic, such as a warning or an error.


© 2026 SixtyFPS GmbH