具体代码如下:
pragma Singleton
import QtQuick 2.15
Item {
id:car3dControl
property bool driverDoorOpen:false //驾驶侧门
property bool passengerDoorOpen:false //乘客侧门
property bool trunkOpen:false //后备箱
property bool frontLightsOn:false //前灯
property bool highBeamOn:false //远光灯
property bool hueChangePaused:true //色调改变停止
//viewState:
//-adas
//-front
//-left
//-right
//-tirePressure
//-battery
//-interior
property string viewState:"adas" //可视的状态
property bool makeInteriorDarkerButtonPressed:false
property bool makeInteriorBrighterButtonPressed:false
property real interiorBrightnessStep:0.1 //亮度改变的步长
property int interiorBrightnessStepDuration:150 //亮度改变步长的时间
prop