| 1 |
import QtQuick 2.0 |
| 2 |
|
| 3 |
Item { |
| 4 |
width: 320 |
| 5 |
height: 480 |
| 6 |
|
| 7 |
TextEdit { |
| 8 |
id: upperCaseText |
| 9 |
anchors.centerIn: parent |
| 10 |
font.family: "Arial" |
| 11 |
font.pixelSize: 16 |
| 12 |
font.capitalization: Font.AllUppercase |
| 13 |
text: "This text is all uppercase" |
| 14 |
} |
| 15 |
|
| 16 |
TextEdit { |
| 17 |
id: lowerCaseText |
| 18 |
anchors.top: upperCaseText.bottom |
| 19 |
anchors.horizontalCenter: parent.horizontalCenter |
| 20 |
font.family: "Arial" |
| 21 |
font.pixelSize: 16 |
| 22 |
font.capitalization: Font.AllLowercase |
| 23 |
text: "This text is all lowercase" |
| 24 |
} |
| 25 |
|
| 26 |
TextEdit { |
| 27 |
id: smallCapsText |
| 28 |
anchors.top: lowerCaseText.bottom |
| 29 |
anchors.horizontalCenter: parent.horizontalCenter |
| 30 |
font.family: "Arial" |
| 31 |
font.pixelSize: 16 |
| 32 |
font.capitalization: Font.SmallCaps |
| 33 |
text: "This text is smallcaps" |
| 34 |
} |
| 35 |
|
| 36 |
TextEdit { |
| 37 |
id: capitalizedText |
| 38 |
anchors.top: smallCapsText.bottom |
| 39 |
anchors.horizontalCenter: parent.horizontalCenter |
| 40 |
font.family: "Arial" |
| 41 |
font.pixelSize: 16 |
| 42 |
font.capitalization: Font.Capitalize |
| 43 |
text: "This text is capitalized" |
| 44 |
} |
| 45 |
|
| 46 |
|
| 47 |
} |