Table of Contents

Class QmlElementAttribute<T>

Namespace
Qt.Quick
Assembly
Qt.Bridge.CSharp.Api.dll

Registers a specific runtime type as a QML element at assembly scope.

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public class QmlElementAttribute<T> : QmlElementAttribute

Type Parameters

T

The runtime type to expose to the Qt Bridge QML generation pipeline.

Inheritance
QmlElementAttribute<T>
Inherited Members

Remarks

This generic assembly-level form is useful when the target type cannot be annotated directly, for example because it is defined in another assembly. The inherited Name and Singleton properties can be used to customize registration metadata.