summaryrefstree
path: root/usr/bin/qmldashboard/com/neusoft/auto/widgets/HMILabel.qml
blob: 85bad464bd85b283f7529c9af2f50abdd9816b20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
*   Copyright (C) 2013 by Neusoft
*   Author : Jia Zhao <zhao-jia@neusoft.com>
*
*/

import QtQuick 2.0
import Label 2.0
/**
 * This is a Text component from QtQuick.
 *
 * You can use all elements of the QML Text component, in particular the "text"
 * property to define the label text.
 */
Label {
    id: label
	property real rate: 0.860
	property real offset: (label.height - label.height*rate)/2
    color: "white"
    wrapMode: Label.WordWrap
    verticalAlignment: Label.AlignVCenter
    horizontalAlignment: Label.AlignHCenter
    font.pixelSize:31*label.rate
    //font.family: "方正兰亭黑简体"
	font.family: "微软雅黑"
    //transform: Scale { origin.x: label.width/2; origin.y: label.height/2; xScale: 1 ;yScale: 1.00/label.rate}
}