C
Qt Quick Ultralite instrument_cluster Example
// Copyright (C) 2024 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial #include "VehicleStatus.h" extern "C" { void qul_application_set_speed(int speed) { VehicleStatus::instance().speed.setValue(speed); } void qul_application_set_trip_meter(double tripMeter) { VehicleStatus::instance().tripMeter.setValue(tripMeter); } void qul_application_set_left_blinker_state(bool state) { VehicleStatus::instance().leftBlinkerStateChange(state); } void qul_application_set_right_blinker_state(bool state) { VehicleStatus::instance().rightBlinkerStateChange(state); } void qul_application_send_value_change_event() { VehicleStatus::instance().postEvent(true); } }