construct::CameraBridge

Thread-safe handle for non-main-thread code (OPAL tasks, background workers) to request camera state changes on the UI's live CameraController.

Declared in src/libs/libconstruct/construct/CameraBridge.hpp
Inherits QObject
Group construct

Detailed description

OPAL tasks run on a worker thread inside the task runtime. They must not touch QRhi / QWidget state directly. CameraBridge sits between them and ConstructShell:

  • Tasks call the Q_INVOKABLE entry points (or QMetaObject::invokeMethod with Qt::QueuedConnection).
  • The corresponding *Requested signal is emitted.
  • ConstructShell connects the signals to its own methods on the main thread (default Qt::AutoConnection becomes QueuedConnection when sender and receiver live on different threads).

The bridge is owned by ConstructShell and registered with ConstructServiceLocator so tasks can find it without depending on the UI layer.

In this section