C

MainForm.ui.qml Example File

indicators/MainForm.ui.qml
/**************************************************************************** ** ** Copyright (C) 2017 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt Safe Renderer module ** ** $QT_BEGIN_LICENSE:GPL-EXCEPT$ ** 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. ** ** GNU General Public License Usage ** Alternatively, this file may be used under the terms of the GNU ** General Public License version 3 as published by the Free Software ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT ** included in the packaging of this file. Please review the following ** information to ensure the GNU General Public License requirements will ** be met: https://www.gnu.org/licenses/gpl-3.0.html. ** ** $QT_END_LICENSE$ ** ****************************************************************************/
import QtQuick 2.8 import Qt.SafeRenderer 1.0 import QtQuick.Extras 1.4 Rectangle { width: 640 height: 92 color: "black" Row { id: leftindicators x: 88 y: 40 width: 150 height: 30 anchors.right: parent.horizontalCenter anchors.rightMargin: 82 anchors.bottom: parent.bottom anchors.bottomMargin: 22 spacing: 8 SafePicture { id: iconCoolant objectName: "iconCoolant" width: 30 height: 30 color: "#e41e25" source: "qrc:/iso-icons/iso_grs_7000_4_2426.dat" } SafePicture { id: iconBattery objectName: "iconBattery" width: 30 height: 30 color: "#e41e25" source: "qrc:/iso-icons/iso_grs_7000_4_0247.dat" } SafePicture { id: iconFuel objectName: "iconFuel" width: 30 height: 30 color: "#e41e25" source: "qrc:/iso-icons/iso_grs_7000_4_0245.dat" } SafePicture { id: iconParkingBrake objectName: "iconParkingBrake" width: 30 height: 30 color: "#e41e25" source: "qrc:/iso-icons/iso_grs_7000_4_0238.dat" } } Row { id: rightindicators y: 36 width: 150 height: 30 anchors.left: parent.horizontalCenter anchors.leftMargin: 32 anchors.bottom: parent.bottom anchors.bottomMargin: 22 spacing: 8 SafePicture { id: iconLowbeam objectName: "iconLowbeam" width: 30 height: 30 source: "qrc:/iso-icons/iso_grs_7000_4_0456.dat" color: "#5caa15" } SafePicture { id: iconTyre objectName: "iconTyre" width: 30 height: 30 color: "#face20" source: "qrc:/iso-icons/iso_grs_7000_4_1434A.dat" } SafePicture { id: iconLamp objectName: "iconLamp" width: 30 height: 30 source: "qrc:/iso-icons/iso_grs_7000_4_1555.dat" color: "#face20" } SafePicture { id: iconSeatbelt objectName: "iconSeatbelt" width: 30 height: 30 color: "#e41e25" source: "qrc:/iso-icons/iso_grs_7000_4_0249.dat" } } }

Available under certain Qt licenses.
Find out more.