The distance, in pixels, from the baseline origin of the first character of the text item, to the baseline origin of the first character in a text item occurring directly after this one in a text flow.
Note that the advance can be negative if the text flows from the right to the left.
Urls are resolved to be within the same directory as the target of the base URL meaning any portion of the path after the last '/' will be ignored.
The default value is the url of the QML file instantiating the Text item.
When using the attached property LayoutMirroring::enabled to mirror application layouts, the horizontal alignment of text will also be mirrored. However, the property horizontalAlignment will remain unchanged. To query the effective horizontal alignment of Text, use the read-only property effectiveHorizontalAlignment.
If this property is set to Text.ElideRight, it can be used with wrapped text. The text will only elide if maximumLineCount, or height has been set. If both maximumLineCount and height are set, maximumLineCount will apply unless the lines do not fit in the height allowed.
Note: This property only has an effect when used together with render type Text.NativeRendering.
The bold state of the font info that has been resolved for the current font and fontSizeMode. This is true if the weight of the resolved font is bold or higher.
The family name of the font that has been resolved for the current font and fontSizeMode.
The italic state of the font info that has been resolved for the current font and fontSizeMode.
The pixel size of the font info that has been resolved for the current font and fontSizeMode.
The pointSize of the font info that has been resolved for the current font and fontSizeMode.
The style name of the font info that has been resolved for the current font and fontSizeMode.
The weight of the font info that has been resolved for the current font and fontSizeMode.
Text.FixedSize (default) - The size specified by font.pixelSize or font.pointSize is used.
Text.HorizontalFit - The largest size up to the size specified that fits within the width of the item without wrapping is used.
Text.VerticalFit - The largest size up to the size specified that fits the height of the item is used.
Text.Fit - The largest size up to the size specified that fits within the width and height of the item is used.
The font size of fitted text has a minimum bound specified by the minimumPointSize or minimumPixelSize property and maximum bound specified by either the font.pointSize or font.pixelSize properties.
If the text does not fit within the item bounds with the minimum font size the text will be elided as per the elide property.
This property contains the link string when the user hovers a link embedded in the text. The link must be in rich text or HTML format and the hoveredLink string provides access to the particular link.
See also linkHovered and linkAt().
The color of links in the text.
This property works with the StyledText textFormat, but not with RichText. Link color in RichText can be specified by including CSS style tags in the text.
This property specifies the minimum font pixel size of text scaled by the fontSizeMode property.
If the fontSizeMode is Text.FixedSize or the font.pixelSize is -1 this property is ignored.
This property specifies the minimum font point size of text scaled by the fontSizeMode property.
If the fontSizeMode is Text.FixedSize or the font.pointSize is -1 this property is ignored.
The item will try to automatically determine whether the text should be treated as styled text. This determination is made using Qt::mightBeRichText().
If the text format is Text.AutoText the Text item will automatically determine whether the text should be treated as styled text. This determination is made using Qt::mightBeRichText() which uses a fast and therefore simple heuristic. It mainly checks whether there is something that looks like a tag before the first line break. Although the result may be correct for common cases, there is no guarantee.
Text.RichText supports a larger subset of HTML 4, as described on the Supported HTML Subset page. You should prefer using Text.PlainText or Text.StyledText instead, as they offer better performance.
Text.NoWrap (default) - no wrapping will be performed. If the text contains insufficient newlines, then contentWidth will exceed a set width.
Text.WordWrap - wrapping is done on word boundaries only. If a word is too long, contentWidth will exceed a set width.
This signal is emitted for each line of text that is laid out during the layout process. The specified line object provides more details about the line that is currently being laid out.
This gives the opportunity to position and resize a line as it is being laid out. It can for example be used to create columns or lay out text around objects.
The corresponding handler is onLineLaidOut.
text: "See the <a href=\"http://qt-project.org\">Qt Project website</a>."
The example code will display the text "See the Qt Project website."
Clicking on the highlighted link will output http://qt-project.org link activated to the console.
See also hoveredLink and linkAt().
Triggers a re-layout of the displayed text.
Returns the link string at point x, y in content coordinates, or an empty string if no link exists at that point.
This QML method was introduced in Qt 5.3.