Skip to content
Snippets Groups Projects
  • Don Gagne's avatar
    e863bdae
    Use FactBinder to access facts from Qml · e863bdae
    Don Gagne authored
    Passing parameters QVariantMap across C++ boundary was causing crashes
    in Qt due to Qml array bugs. Referencing same Fact* across Qml boundary
    in multiple QQuickWidgets caused jScript GC to crash.
    e863bdae
    History
    Use FactBinder to access facts from Qml
    Don Gagne authored
    Passing parameters QVariantMap across C++ boundary was causing crashes
    in Qt due to Qml array bugs. Referencing same Fact* across Qml boundary
    in multiple QQuickWidgets caused jScript GC to crash.
FactLabel.qml 263 B
import QtQuick 2.2
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2

import QGroundControl.FactSystem 1.0
import QGroundControl.Palette 1.0
import QGroundControl.Controls 1.0

QGCLabel {
    property Fact fact: Fact { }
    text: fact.valueString
}