C

Indicators: Creating Safety-Critical UI

/**************************************************************************** ** ** Copyright (C) 2021 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt Safe Renderer module ** ** $QT_BEGIN_LICENSE:COMM$ ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms ** and conditions see https://www.qt.io/terms-conditions. For further ** information use the contact form at https://www.qt.io/contact-us. ** ** $QT_END_LICENSE$ ** ** ** ** ** ** ** ** ****************************************************************************/
import QtQuick 2.6 import Qt.SafeRenderer 2.0 Rectangle { width: 640 height: 92 color: "black" Row { id: leftindicators x: 11 y: 18 width: 300 height: 60 anchors.right: parent.horizontalCenter anchors.rightMargin: 9 anchors.bottom: parent.bottom anchors.bottomMargin: 14 spacing: 8 SafePicture { id: iconCoolant objectName: "iconCoolant" width: 60 height: 60 color: "#e41e25" source: "qrc:/iso-icons/iso_grs_7000_4_2426.dat" } SafePicture { id: iconBattery objectName: "iconBattery" width: 60 height: 60 color: "#e41e25" source: "qrc:/iso-icons/iso_grs_7000_4_0247.dat" } SafePicture { id: iconFuel objectName: "iconFuel" width: 60 height: 60 color: "#e41e25" source: "qrc:/iso-icons/iso_grs_7000_4_0245.dat" } SafePicture { id: iconParkingBrake objectName: "iconParkingBrake" width: 60 height: 60 color: "#e41e25" source: "qrc:/iso-icons/iso_grs_7000_4_0238.dat" } } Row { id: rightindicators y: 18 width: 300 height: 60 anchors.left: parent.horizontalCenter anchors.leftMargin: 10 anchors.bottom: parent.bottom anchors.bottomMargin: 14 spacing: 8 SafePicture { id: iconLowbeam objectName: "iconLowbeam" width: 60 height: 60 source: "qrc:/iso-icons/iso_grs_7000_4_0456.dat" color: "#5caa15" } SafePicture { id: iconTyre objectName: "iconTyre" width: 60 height: 60 color: "#face20" source: "qrc:/iso-icons/iso_grs_7000_4_1434A.dat" } SafePicture { id: iconLamp objectName: "iconLamp" width: 60 height: 60 source: "qrc:/iso-icons/iso_grs_7000_4_1555.dat" color: "#face20" } SafePicture { id: iconSeatbelt objectName: "iconSeatbelt" width: 60 height: 60 color: "#e41e25" source: "qrc:/iso-icons/iso_grs_7000_4_0249.dat" } } }