C
Event Sender: Sending Messages to Applications
// Copyright (C) 2023 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial // This file is part of the Qt Safe Renderer module import QtQuick Item { id: carFrame width: electricCar ? carShapeElectric.width : carShape.width height: electricCar ? carShapeElectric.height : carShape.height property bool electricCar: false property bool headLight: false property bool leftBlink: false property bool rightBlink: false property bool breakLight: false property bool leftFrontDoorOpen: false property bool leftBackDoorOpen: false property bool rightFrontDoorOpen: false property bool rightBackDoorOpen: false property bool bootDoorOpen: false property bool hoodDoorOpen: false // Sports Car Image { id: carShape visible: !electricCar source: "qrc:/S-Car_Shape.png" } Image { visible: !electricCar source: breakLight ? "qrc:/S-Car_BrakesON.png" : "qrc:/S-Car_BrakesOFF.png" } /*Image { visible: !electricCar source: leftFrontDoorOpen ? "qrc:/S-Car_DoorLeftON.png" : "qrc:/S-Car_DoorLeftOFF.png" } Image { visible: !electricCar source: rightFrontDoorOpen ? "qrc:/S-Car_DoorRightON.png" : "qrc:/S-Car_DoorRightOFF.png" }*/ /*Image { visible: !electricCar source: hoodDoorOpen ? "qrc:/S-Car_HoodON.png" : "qrc:/S-Car_HoodOFF.png" }*/ Image { visible: !electricCar source: headLight ? "qrc:/S-Car_LowBeamsON.png" : "qrc:/S-Car_LowBeamsOFF.png" } /*Image { visible: !electricCar source: bootDoorOpen ? "qrc:/S-Car_TrunkON.png" : "qrc:/S-Car_TrunkOFF.png" }*/ Image { visible: !electricCar source: leftBlink ? "qrc:/S-Car_TurnLeftON.png" : "qrc:/S-Car_TurnLeftOFF.png" } Image { visible: !electricCar source: rightBlink ? "qrc:/S-Car_TurnRightON.png" : "qrc:/S-Car_TurnRightOFF.png" } }