Table of Contents

Class ExportAs

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

Export mode values for ExportAttribute

public static class ExportAs
Inheritance
ExportAs
Inherited Members

Remarks

Qt Bridge can expose a managed type to QML using different export modes. These values are intended for use with Options:

  • Metadata selects metadata-based export, where the type is described through metadata consumed by the bridge at runtime.
  • SourceCode selects wrapper-based export, where the bridge prepares code for that type.
  • Default resets a type-level export declaration to the built-in Qt Bridge default instead of inheriting an assembly-level ExportAttribute.

Fields

Default

Use the built-in default export mode

public const Options Default = Default

Field Value

Options

Remarks

When applied explicitly on a type, this resets export behavior to the built-in default chosen by Qt Bridge. It does not inherit an assembly-level ExportAttribute setting.

Metadata

Export the type as metadata

public const Options Metadata = Export

Field Value

Options

SourceCode

Export the type through generated bridge wrapper code

public const Options SourceCode = Export | ExportAsSourceCode

Field Value

Options