QML MapText ElementThe MapText element displays text on a map. More... Properties
Detailed DescriptionThe string text will be drawn offset.x and offset.y pixels away from the on-screen position of coordinate. The text will be rendered with font font and color color, and will be aligned according to horizontalAlignment and verticalAlignment. If text is empty or coordinate is invalid nothing will be displayed. The MapText element is part of the QtMobility.location 1.1 module. Property DocumentationThis property holds the coordinate at which to anchor the text. Sets the capitalization for the text.
MapText { text: "Hello"; font.capitalization: Font.AllLowercase } Sets the family name of the font. The family name is case insensitive and may optionally include a foundry name, e.g. "Helvetica [Cronyx]". If the family is available from more than one foundry and the foundry isn't specified, an arbitrary foundry is chosen. If the family isn't available a family will be set using the font matching algorithm. Sets the letter spacing for the font. Letter spacing changes the default spacing between individual letters in the font. A positive value increases the letter spacing by the corresponding pixels; a negative value decreases the spacing. Sets the font size in pixels. Using this function makes the font device dependent. Use pointSize to set the size of the font in a device independent manner. Sets the font's weight. The weight can be one of:
MapText { text: "Hello"; font.weight: Font.DemiBold } Sets the word spacing for the font. Word spacing changes the default spacing between individual words. A positive value increases the word spacing by a corresponding amount of pixels, while a negative value decreases the inter-word spacing accordingly. Sets the horizontal and vertical alignment of the text. The alignment is relative to the point offset.x and offset.y pixels away from the on-screen position of coordinate. The valid values for horizontalAlignment are MapText.AlignLeft, MapText.AlignRight and MapText.AlignHCenter. The valid values for verticalAlignment are MapText.AlignTop, MapText.AlignBottom and MapText.AlignVCenter. The default values are MapText.AlignHCenter and MapText.AlignVCenter respectively. These properties hold the offset from the on-screen position of coordinate at which the text should be displayed. They both default to 0. This property holds the z-value of the text. Map objects are drawn in z-value order, and objects with the same z-value will be drawn in insertion order. X
|