pub struct TextFormat(/* private fields */);
Expand description
This enum is used in widgets that can display both plain text and rich text, for example QLabel. It is used for deciding whether a text string should be interpreted as one or the other. This is normally done by passing one of the enum values to a QTextEdit::setTextFormat() function.
C++ enum: Qt::TextFormat
.
This enum is used in widgets that can display both plain text and rich text, for example QLabel. It is used for deciding whether a text string should be interpreted as one or the other. This is normally done by passing one of the enum values to a QTextEdit::setTextFormat() function.
Implementations§
Source§impl TextFormat
impl TextFormat
Sourcepub const PlainText: TextFormat
pub const PlainText: TextFormat
The text string is interpreted as a plain text string. (C++ enum variant: PlainText = 0
)
Sourcepub const RichText: TextFormat
pub const RichText: TextFormat
The text string is interpreted as a rich text string. See Supported HTML Subset for the definition of rich text. (C++ enum variant: RichText = 1
)
Sourcepub const AutoText: TextFormat
pub const AutoText: TextFormat
The text string is interpreted as for Qt::RichText if Qt::mightBeRichText() returns true
, otherwise as Qt::PlainText. (C++ enum variant: AutoText = 2
)
Sourcepub const MarkdownText: TextFormat
pub const MarkdownText: TextFormat
The text string is interpreted as Markdown-formatted text. This enum value was added in Qt 5.14. (C++ enum variant: MarkdownText = 3
)
Trait Implementations§
Source§impl Clone for TextFormat
impl Clone for TextFormat
Source§fn clone(&self) -> TextFormat
fn clone(&self) -> TextFormat
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more