blob: b0ed21a0c84d0bf260fbf7d3aa0ff1277ca61459 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import QtQuick 2.0
Rectangle {
width: 200
height: 200
color: "white"
Text {
objectName: "text"
textFormat: Text.RichText
anchors.fill: parent
color: "black"
// display a black rectangle at the top left of the text
text: "<span style=\"background-color:rgba(255,255,255,255);vertical-align:super;\">█</span>This is a test"
verticalAlignment: Text.AlignTop
horizontalAlignment: Text.AlignLeft
font.pixelSize: 30
}
}
|