Struct qt_gui::q_text_format::Property
source · pub struct Property(/* private fields */);
Expand description
This enum describes the different properties a format can have.
C++ enum: QTextFormat::Property
.
This enum describes the different properties a format can have.
Paragraph and character properties
Paragraph properties
Character properties
List properties
Table and frame properties
Table cell properties
Image properties
Selection properties
Page break properties
See also property() and setProperty().
Implementations§
source§impl Property
impl Property
sourcepub const ObjectIndex: Property = _
pub const ObjectIndex: Property = _
The index of the formatted object. See objectIndex(). (C++ enum variant: ObjectIndex = 0
)
sourcepub const CssFloat: Property = _
pub const CssFloat: Property = _
How a frame is located relative to the surrounding text (C++ enum variant: CssFloat = 2048
)
sourcepub const LayoutDirection: Property = _
pub const LayoutDirection: Property = _
The layout direction of the text in the document (Qt::LayoutDirection). (C++ enum variant: LayoutDirection = 2049
)
sourcepub const OutlinePen: Property = _
pub const OutlinePen: Property = _
(C++ enum variant: OutlinePen = 2064
)
sourcepub const BackgroundBrush: Property = _
pub const BackgroundBrush: Property = _
(C++ enum variant: BackgroundBrush = 2080
)
sourcepub const ForegroundBrush: Property = _
pub const ForegroundBrush: Property = _
(C++ enum variant: ForegroundBrush = 2081
)
sourcepub const BackgroundImageUrl: Property = _
pub const BackgroundImageUrl: Property = _
(C++ enum variant: BackgroundImageUrl = 2083
)
sourcepub const BlockAlignment: Property = _
pub const BlockAlignment: Property = _
(C++ enum variant: BlockAlignment = 4112
)
sourcepub const BlockTopMargin: Property = _
pub const BlockTopMargin: Property = _
(C++ enum variant: BlockTopMargin = 4144
)
sourcepub const BlockBottomMargin: Property = _
pub const BlockBottomMargin: Property = _
(C++ enum variant: BlockBottomMargin = 4145
)
sourcepub const BlockLeftMargin: Property = _
pub const BlockLeftMargin: Property = _
(C++ enum variant: BlockLeftMargin = 4146
)
sourcepub const BlockRightMargin: Property = _
pub const BlockRightMargin: Property = _
(C++ enum variant: BlockRightMargin = 4147
)
sourcepub const TextIndent: Property = _
pub const TextIndent: Property = _
(C++ enum variant: TextIndent = 4148
)
sourcepub const TabPositions: Property = _
pub const TabPositions: Property = _
Specifies the tab positions. The tab positions are structs of QTextOption::Tab which are stored in a QList (internally, in a QList<QVariant>). (C++ enum variant: TabPositions = 4149
)
sourcepub const BlockIndent: Property = _
pub const BlockIndent: Property = _
(C++ enum variant: BlockIndent = 4160
)
sourcepub const LineHeight: Property = _
pub const LineHeight: Property = _
(C++ enum variant: LineHeight = 4168
)
sourcepub const LineHeightType: Property = _
pub const LineHeightType: Property = _
(C++ enum variant: LineHeightType = 4169
)
sourcepub const BlockNonBreakableLines: Property = _
pub const BlockNonBreakableLines: Property = _
(C++ enum variant: BlockNonBreakableLines = 4176
)
sourcepub const BlockTrailingHorizontalRulerWidth: Property = _
pub const BlockTrailingHorizontalRulerWidth: Property = _
The width of a horizontal ruler element. (C++ enum variant: BlockTrailingHorizontalRulerWidth = 4192
)
sourcepub const FirstFontProperty: Property = _
pub const FirstFontProperty: Property = _
C++ enum variant: FirstFontProperty = 8160
sourcepub const FontCapitalization: Property = _
pub const FontCapitalization: Property = _
Specifies the capitalization type that is to be applied to the text. (C++ enum variant: FontCapitalization = 8160
)
sourcepub const FontLetterSpacingType: Property = _
pub const FontLetterSpacingType: Property = _
Specifies the meaning of the FontLetterSpacing property. The default is QFont::PercentageSpacing. (C++ enum variant: FontLetterSpacingType = 8243
)
sourcepub const FontLetterSpacing: Property = _
pub const FontLetterSpacing: Property = _
Changes the default spacing between individual letters in the font. The value is specified as a percentage or absolute value, depending on FontLetterSpacingType. The default value is 100%. (C++ enum variant: FontLetterSpacing = 8161
)
sourcepub const FontWordSpacing: Property = _
pub const FontWordSpacing: Property = _
Changes the default spacing between individual words. A positive value increases the word spacing by the corresponding pixels; a negative value decreases the spacing. (C++ enum variant: FontWordSpacing = 8162
)
sourcepub const FontStretch: Property = _
pub const FontStretch: Property = _
Corresponds to the QFont::Stretch property (C++ enum variant: FontStretch = 8244
)
sourcepub const FontStyleHint: Property = _
pub const FontStyleHint: Property = _
Corresponds to the QFont::StyleHint property (C++ enum variant: FontStyleHint = 8163
)
sourcepub const FontStyleStrategy: Property = _
pub const FontStyleStrategy: Property = _
Corresponds to the QFont::StyleStrategy property (C++ enum variant: FontStyleStrategy = 8164
)
sourcepub const FontKerning: Property = _
pub const FontKerning: Property = _
Specifies whether the font has kerning turned on. (C++ enum variant: FontKerning = 8165
)
sourcepub const FontHintingPreference: Property = _
pub const FontHintingPreference: Property = _
Controls the use of hinting according to values of the QFont::HintingPreference enum. (C++ enum variant: FontHintingPreference = 8166
)
sourcepub const FontFamily: Property = _
pub const FontFamily: Property = _
(C++ enum variant: FontFamily = 8192
)
sourcepub const FontPointSize: Property = _
pub const FontPointSize: Property = _
(C++ enum variant: FontPointSize = 8193
)
sourcepub const FontSizeAdjustment: Property = _
pub const FontSizeAdjustment: Property = _
Specifies the change in size given to the fontsize already set using FontPointSize or FontPixelSize. (C++ enum variant: FontSizeAdjustment = 8194
)
sourcepub const FontSizeIncrement: Property = _
pub const FontSizeIncrement: Property = _
C++ enum variant: FontSizeIncrement = 8194
sourcepub const FontWeight: Property = _
pub const FontWeight: Property = _
(C++ enum variant: FontWeight = 8195
)
sourcepub const FontItalic: Property = _
pub const FontItalic: Property = _
(C++ enum variant: FontItalic = 8196
)
sourcepub const FontUnderline: Property = _
pub const FontUnderline: Property = _
This property has been deprecated. Use QTextFormat::TextUnderlineStyle instead. (C++ enum variant: FontUnderline = 8197
)
sourcepub const FontOverline: Property = _
pub const FontOverline: Property = _
(C++ enum variant: FontOverline = 8198
)
sourcepub const FontStrikeOut: Property = _
pub const FontStrikeOut: Property = _
(C++ enum variant: FontStrikeOut = 8199
)
sourcepub const FontFixedPitch: Property = _
pub const FontFixedPitch: Property = _
(C++ enum variant: FontFixedPitch = 8200
)
sourcepub const FontPixelSize: Property = _
pub const FontPixelSize: Property = _
(C++ enum variant: FontPixelSize = 8201
)
sourcepub const LastFontProperty: Property = _
pub const LastFontProperty: Property = _
C++ enum variant: LastFontProperty = 8201
sourcepub const TextUnderlineColor: Property = _
pub const TextUnderlineColor: Property = _
(C++ enum variant: TextUnderlineColor = 8208
)
sourcepub const TextVerticalAlignment: Property = _
pub const TextVerticalAlignment: Property = _
(C++ enum variant: TextVerticalAlignment = 8225
)
sourcepub const TextOutline: Property = _
pub const TextOutline: Property = _
(C++ enum variant: TextOutline = 8226
)
sourcepub const TextUnderlineStyle: Property = _
pub const TextUnderlineStyle: Property = _
(C++ enum variant: TextUnderlineStyle = 8227
)
sourcepub const TextToolTip: Property = _
pub const TextToolTip: Property = _
Specifies the (optional) tool tip to be displayed for a fragment of text. (C++ enum variant: TextToolTip = 8228
)
sourcepub const AnchorHref: Property = _
pub const AnchorHref: Property = _
(C++ enum variant: AnchorHref = 8241
)
sourcepub const AnchorName: Property = _
pub const AnchorName: Property = _
(C++ enum variant: AnchorName = 8242
)
sourcepub const ObjectType: Property = _
pub const ObjectType: Property = _
(C++ enum variant: ObjectType = 12032
)
sourcepub const ListStyle: Property = _
pub const ListStyle: Property = _
Specifies the style used for the items in a list, described by values of the QTextListFormat::Style enum. (C++ enum variant: ListStyle = 12288
)
sourcepub const ListIndent: Property = _
pub const ListIndent: Property = _
Specifies the amount of indentation used for a list. (C++ enum variant: ListIndent = 12289
)
sourcepub const ListNumberPrefix: Property = _
pub const ListNumberPrefix: Property = _
Defines the text which is prepended to item numbers in numeric lists. (C++ enum variant: ListNumberPrefix = 12290
)
sourcepub const ListNumberSuffix: Property = _
pub const ListNumberSuffix: Property = _
Defines the text which is appended to item numbers in numeric lists. (C++ enum variant: ListNumberSuffix = 12291
)
sourcepub const FrameBorder: Property = _
pub const FrameBorder: Property = _
(C++ enum variant: FrameBorder = 16384
)
sourcepub const FrameMargin: Property = _
pub const FrameMargin: Property = _
(C++ enum variant: FrameMargin = 16385
)
sourcepub const FramePadding: Property = _
pub const FramePadding: Property = _
(C++ enum variant: FramePadding = 16386
)
sourcepub const FrameWidth: Property = _
pub const FrameWidth: Property = _
(C++ enum variant: FrameWidth = 16387
)
sourcepub const FrameHeight: Property = _
pub const FrameHeight: Property = _
(C++ enum variant: FrameHeight = 16388
)
sourcepub const FrameTopMargin: Property = _
pub const FrameTopMargin: Property = _
(C++ enum variant: FrameTopMargin = 16389
)
sourcepub const FrameBottomMargin: Property = _
pub const FrameBottomMargin: Property = _
(C++ enum variant: FrameBottomMargin = 16390
)
sourcepub const FrameLeftMargin: Property = _
pub const FrameLeftMargin: Property = _
(C++ enum variant: FrameLeftMargin = 16391
)
sourcepub const FrameRightMargin: Property = _
pub const FrameRightMargin: Property = _
(C++ enum variant: FrameRightMargin = 16392
)
sourcepub const FrameBorderBrush: Property = _
pub const FrameBorderBrush: Property = _
(C++ enum variant: FrameBorderBrush = 16393
)
sourcepub const FrameBorderStyle: Property = _
pub const FrameBorderStyle: Property = _
See the BorderStyle enum. (C++ enum variant: FrameBorderStyle = 16400
)
sourcepub const TableColumns: Property = _
pub const TableColumns: Property = _
(C++ enum variant: TableColumns = 16640
)
sourcepub const TableColumnWidthConstraints: Property = _
pub const TableColumnWidthConstraints: Property = _
(C++ enum variant: TableColumnWidthConstraints = 16641
)
sourcepub const TableCellSpacing: Property = _
pub const TableCellSpacing: Property = _
(C++ enum variant: TableCellSpacing = 16642
)
sourcepub const TableCellPadding: Property = _
pub const TableCellPadding: Property = _
(C++ enum variant: TableCellPadding = 16643
)
sourcepub const TableHeaderRowCount: Property = _
pub const TableHeaderRowCount: Property = _
(C++ enum variant: TableHeaderRowCount = 16644
)
sourcepub const TableCellRowSpan: Property = _
pub const TableCellRowSpan: Property = _
C++ enum variant: TableCellRowSpan = 18448
sourcepub const TableCellColumnSpan: Property = _
pub const TableCellColumnSpan: Property = _
C++ enum variant: TableCellColumnSpan = 18449
sourcepub const TableCellTopPadding: Property = _
pub const TableCellTopPadding: Property = _
C++ enum variant: TableCellTopPadding = 18450
sourcepub const TableCellBottomPadding: Property = _
pub const TableCellBottomPadding: Property = _
C++ enum variant: TableCellBottomPadding = 18451
sourcepub const TableCellLeftPadding: Property = _
pub const TableCellLeftPadding: Property = _
C++ enum variant: TableCellLeftPadding = 18452
sourcepub const TableCellRightPadding: Property = _
pub const TableCellRightPadding: Property = _
C++ enum variant: TableCellRightPadding = 18453
sourcepub const ImageName: Property = _
pub const ImageName: Property = _
The filename or source of the image. (C++ enum variant: ImageName = 20480
)
sourcepub const ImageWidth: Property = _
pub const ImageWidth: Property = _
(C++ enum variant: ImageWidth = 20496
)
sourcepub const ImageHeight: Property = _
pub const ImageHeight: Property = _
(C++ enum variant: ImageHeight = 20497
)
sourcepub const FullWidthSelection: Property = _
pub const FullWidthSelection: Property = _
When set on the characterFormat of a selection, the whole width of the text will be shown selected. (C++ enum variant: FullWidthSelection = 24576
)
sourcepub const PageBreakPolicy: Property = _
pub const PageBreakPolicy: Property = _
Specifies how pages are broken. See the PageBreakFlag enum. (C++ enum variant: PageBreakPolicy = 28672
)
sourcepub const UserProperty: Property = _
pub const UserProperty: Property = _
(C++ enum variant: UserProperty = 1048576
)
sourcepub const HeadingLevel: Property = _
pub const HeadingLevel: Property = _
The level of a heading, for example 1 corresponds to an HTML H1 tag; otherwise 0. This enum value has been added in Qt 5.12. (C++ enum variant: HeadingLevel = 4208
)
sourcepub const ImageQuality: Property = _
pub const ImageQuality: Property = _
(C++ enum variant: ImageQuality = 20500
)
sourcepub const FontFamilies: Property = _
pub const FontFamilies: Property = _
(C++ enum variant: FontFamilies = 8167
)
sourcepub const FontStyleName: Property = _
pub const FontStyleName: Property = _
(C++ enum variant: FontStyleName = 8168
)
sourcepub const BlockQuoteLevel: Property = _
pub const BlockQuoteLevel: Property = _
The depth of nested quoting on this block: 1 means the block is a top-level block quote. Blocks that are not block quotes should not have this property. This enum value has been added in Qt 5.14. (C++ enum variant: BlockQuoteLevel = 4224
)
sourcepub const BlockCodeLanguage: Property = _
pub const BlockCodeLanguage: Property = _
The programming language in a preformatted or code block. Blocks that do not contain code should not have this property. This enum value has been added in Qt 5.14. (C++ enum variant: BlockCodeLanguage = 4240
)
sourcepub const BlockCodeFence: Property = _
pub const BlockCodeFence: Property = _
The character that was used in the “fences” around a Markdown code block. If the code block was indented rather than fenced, the block should not have this property. This enum value has been added in Qt 5.14. (C++ enum variant: BlockCodeFence = 4241
)
sourcepub const BlockMarker: Property = _
pub const BlockMarker: Property = _
The type of adornment to be shown alongside the block. This enum value has been added in Qt 5.14. (C++ enum variant: BlockMarker = 4256
)
sourcepub const TableBorderCollapse: Property = _
pub const TableBorderCollapse: Property = _
Specifies the QTextTableFormat::borderCollapse property. (C++ enum variant: TableBorderCollapse = 16645
)
sourcepub const TableCellTopBorder: Property = _
pub const TableCellTopBorder: Property = _
C++ enum variant: TableCellTopBorder = 18454
sourcepub const TableCellBottomBorder: Property = _
pub const TableCellBottomBorder: Property = _
C++ enum variant: TableCellBottomBorder = 18455
sourcepub const TableCellLeftBorder: Property = _
pub const TableCellLeftBorder: Property = _
C++ enum variant: TableCellLeftBorder = 18456
sourcepub const TableCellRightBorder: Property = _
pub const TableCellRightBorder: Property = _
C++ enum variant: TableCellRightBorder = 18457
sourcepub const TableCellTopBorderStyle: Property = _
pub const TableCellTopBorderStyle: Property = _
C++ enum variant: TableCellTopBorderStyle = 18458
sourcepub const TableCellBottomBorderStyle: Property = _
pub const TableCellBottomBorderStyle: Property = _
C++ enum variant: TableCellBottomBorderStyle = 18459
sourcepub const TableCellLeftBorderStyle: Property = _
pub const TableCellLeftBorderStyle: Property = _
C++ enum variant: TableCellLeftBorderStyle = 18460
sourcepub const TableCellRightBorderStyle: Property = _
pub const TableCellRightBorderStyle: Property = _
C++ enum variant: TableCellRightBorderStyle = 18461
sourcepub const TableCellTopBorderBrush: Property = _
pub const TableCellTopBorderBrush: Property = _
C++ enum variant: TableCellTopBorderBrush = 18462
sourcepub const TableCellBottomBorderBrush: Property = _
pub const TableCellBottomBorderBrush: Property = _
C++ enum variant: TableCellBottomBorderBrush = 18463
sourcepub const TableCellLeftBorderBrush: Property = _
pub const TableCellLeftBorderBrush: Property = _
C++ enum variant: TableCellLeftBorderBrush = 18464
sourcepub const TableCellRightBorderBrush: Property = _
pub const TableCellRightBorderBrush: Property = _
C++ enum variant: TableCellRightBorderBrush = 18465
sourcepub const ImageTitle: Property = _
pub const ImageTitle: Property = _
The title attribute of an HTML image tag, or the quoted string that comes after the URL in a Markdown image link. This enum value has been added in Qt 5.14. (C++ enum variant: ImageTitle = 20481
)
sourcepub const ImageAltText: Property = _
pub const ImageAltText: Property = _
The alt attribute of an HTML image tag, or the image description in a Markdown image link. This enum value has been added in Qt 5.14. (C++ enum variant: ImageAltText = 20482
)