C

Qt Quick Ultralite Motorcycle Cluster Demo

/****************************************************************************** ** ** Copyright (C) 2024 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt Quick Ultralite 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 http://www.qt.io/terms-conditions. For further ** information use the contact form at http://www.qt.io/contact-us. ** ** $QT_END_LICENSE$ ** ******************************************************************************/
import QtQuick 2.0 Item { id: root width: 750 height: 66 property alias text: txt.text property alias color: txt.color Text { id: txt anchors.horizontalCenter: inputTextBottomLine.horizontalCenter anchors.bottom: inputTextBottomLine.bottom anchors.bottomMargin: 9 font.pixelSize: 51 } Rectangle { id: inputTextBottomLine width: 750 height: 3 anchors.top: root.top anchors.topMargin: 63 color: txt.color Rectangle { width: 3 height: 12 anchors.bottom: inputTextBottomLine.bottom anchors.left: inputTextBottomLine.left color: txt.color } Rectangle { width: 3 height: 12 anchors.bottom: inputTextBottomLine.bottom anchors.right: inputTextBottomLine.right color: txt.color } } }