Fluent-Qt

API reference

QmlSession

Owns QML bridge activation for C++, PySide6 and WebAssembly applications.

fluent::qmlbridge::QmlSession

Inherits QObject

Constructors

Properties

bool active
Read isActive()Notify activeChanged()

Methods

static void prepareApplication()

Selects Qt Quick OpenGL before the first Quick surface is created.

static void prepareApplication(GraphicsApi api)

Selects a Quick graphics API before the first Quick surface exists.

static bool isGraphicsApiCompatible(GraphicsApi api)

Checks whether Quick can share the requested widget graphics API.

bool activate(QString* error = nullptr)

Activates the bridge; repeating an active call is a no-op.

bool deactivate(QString* error = nullptr)

Unloads tracked scenes, retaining caller-owned views and models.

QmlView* createView(QWidget* parent = nullptr)

Creates a caller-owned view only while the session is active.

bool attachView(QmlView* view)

Tracks an existing caller-owned view only while active.

Signals

Enumerations

enum class GraphicsApi

Selects the graphics API shared by Quick and its native widget host.

  • Automatic
  • OpenGL
  • Direct3D11
  • Metal

Destructors

All inherited Qt members:QObject