package lablqml

  1. Overview
  2. Docs

Module LablqmlSource

Sourcetype t
Sourceval get_view_exn : name:string -> t
Sourceval get_view : name:string -> t option
Sourcetype 'a cppobj
Sourceval set_context_property : ctx:t -> name:string -> _ cppobj -> unit
Sourcemodule QVariant : sig ... end
Sourceclass test_object : t -> object ... end
Sourcemodule QModelIndex : sig ... end
Sourcemodule QGuiApplication : sig ... end
Sourcemodule QQmlEngine : sig ... end

This Qml engine doesn't apply any platform dependent styling.

Sourceval create_qapplication : string array -> QGuiApplication.t * QQmlEngine.t

Creates QGuiApplication. No platform-dependent styling applied.

Sourcemodule QQuickWindow : sig ... end
Sourceval loadQml : string -> QQmlEngine.t -> QQuickWindow.t option

Creates QQuickWindow using file and QQmlEngine

Sourcemodule QQmlAppEngine : sig ... end
Sourceval object_child_named : 'a cppobj -> string -> 'a cppobj
Sourceval object_property_named : 'a cppobj -> string -> 'a cppobj
Sourceval create_app_engine : string array -> string -> QGuiApplication.t * QQmlAppEngine.t

Creates QGuiApplication and QQmlApplicationEngine.

Sourceval run_with_QQmlApplicationEngine : string array -> (unit -> unit) -> string -> unit

Function run_with_QQmlApplicationEngine argv callback path initializates and open QQuickWindow using QQmlApplcationEngine. It uses platform-dependent styling, so the root element of the QML file specified in path should be a Window from QtQuick.Controls library

Sourcetype qvariantable
Sourcetype non_qvariantable
Sourceclass virtual 'valtyp prop : string -> object ... end
Sourceclass virtual 'valtyp qvariant_prop : string -> object ... end
Sourcemodule PropMap : sig ... end
Sourcemodule OCamlObject : sig ... end
Sourcemodule SingleFunc : sig ... end
OCaml

Innovation. Community. Security.