PythonQt.QtGui.QTextCharFormat · declarations 001
Back to PythonQt.QtGui.QTextCharFormat
AlignMiddle
instance-attribute
AlignMiddle: Any
AlignNormal
instance-attribute
AlignNormal: Any
AlignSubScript
instance-attribute
AlignSubScript: Any
AlignSuperScript
instance-attribute
AlignSuperScript: Any
DashUnderline
instance-attribute
DashUnderline: Any
FontPropertiesAll
instance-attribute
FontPropertiesAll: Any
FontPropertiesInheritanceBehavior
instance-attribute
FontPropertiesInheritanceBehavior: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
FontPropertiesSpecifiedOnly
instance-attribute
FontPropertiesSpecifiedOnly: Any
NoUnderline
instance-attribute
NoUnderline: Any
SingleUnderline
instance-attribute
SingleUnderline: Any
SpellCheckUnderline
instance-attribute
SpellCheckUnderline: Any
UnderlineStyle
instance-attribute
UnderlineStyle: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
VerticalAlignment
instance-attribute
VerticalAlignment: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
WaveUnderline
instance-attribute
WaveUnderline: Any
anchorHref
anchorHref() -> str
X.anchorHref() -> str
Supplemental documentation: Qt 5 reference:
QString QTextCharFormat::anchorHref() const
Returns the text format's hypertext link, or an empty string if none has been set.
See also setAnchorHref().
Upstream PySide2 reference signatures (binding differences may apply):
anchorHref(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#anchorHref
anchorNames
anchorNames() -> tuple
X.anchorNames() -> tuple
Supplemental documentation: Qt 5 reference:
QStringList QTextCharFormat::anchorNames() const
Returns the anchor names associated with this text format, or an empty string list if none has been set. If the anchor names are set, text with this format can be the destination of a hypertext link.
This function was introduced in Qt 4.3.
See also setAnchorNames().
Upstream PySide2 reference signatures (binding differences may apply):
anchorNames(self) -> typing.List[str]
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#anchorNames
font
font() -> Any
X.font() -> PythonQt.QtGui.QFont
Supplemental documentation: Qt 5 reference:
QFont QTextCharFormat::font() const
Returns the font for this character format.
See also setFont().
Upstream PySide2 reference signatures (binding differences may apply):
font(self) -> PySide2.QtGui.QFont
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#font
fontCapitalization
fontCapitalization() -> Any
X.fontCapitalization()
Supplemental documentation: Qt 5 reference:
QFont::Capitalization QTextCharFormat::fontCapitalization() const
Returns the current capitalization type of the font.
This function was introduced in Qt 4.4.
See also setFontCapitalization().
Upstream PySide2 reference signatures (binding differences may apply):
fontCapitalization(self) -> PySide2.QtGui.QFont.Capitalization
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#fontCapitalization
fontFamily
fontFamily() -> str
X.fontFamily() -> str
Supplemental documentation: Qt 5 reference:
QString QTextCharFormat::fontFamily() const
Returns the text format's font family.
See also setFontFamily() and font().
Upstream PySide2 reference signatures (binding differences may apply):
fontFamily(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#fontFamily
fontFixedPitch
fontFixedPitch() -> bool
X.fontFixedPitch() -> bool
Supplemental documentation: Qt 5 reference:
bool QTextCharFormat::fontFixedPitch() const
Returns true if the text format's font is fixed pitch; otherwise returns false.
See also setFontFixedPitch() and font().
Upstream PySide2 reference signatures (binding differences may apply):
fontFixedPitch(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#fontFixedPitch
fontHintingPreference
fontHintingPreference() -> Any
X.fontHintingPreference()
Supplemental documentation: Qt 5 reference:
QFont::HintingPreference QTextCharFormat::fontHintingPreference() const
Returns the hinting preference set for this text format.
This function was introduced in Qt 4.8.
See also setFontHintingPreference(), font(), and QFont::hintingPreference().
Upstream PySide2 reference signatures (binding differences may apply):
fontHintingPreference(self) -> PySide2.QtGui.QFont.HintingPreference
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#fontHintingPreference
fontItalic
fontItalic() -> bool
X.fontItalic() -> bool
Supplemental documentation: Qt 5 reference:
bool QTextCharFormat::fontItalic() const
Returns true if the text format's font is italic; otherwise returns false.
See also setFontItalic() and font().
Upstream PySide2 reference signatures (binding differences may apply):
fontItalic(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#fontItalic
fontKerning
fontKerning() -> bool
X.fontKerning() -> bool
Supplemental documentation: Qt 5 reference:
bool QTextCharFormat::fontKerning() const
Returns true if the font kerning is enabled.
This function was introduced in Qt 4.5.
See also setFontKerning() and font().
Upstream PySide2 reference signatures (binding differences may apply):
fontKerning(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#fontKerning
fontLetterSpacing
fontLetterSpacing() -> float
X.fontLetterSpacing() -> float
Supplemental documentation: Qt 5 reference:
qreal QTextCharFormat::fontLetterSpacing() const
Returns the current letter spacing.
This function was introduced in Qt 4.4.
See also setFontLetterSpacing(), setFontLetterSpacingType(), and fontLetterSpacingType().
Upstream PySide2 reference signatures (binding differences may apply):
fontLetterSpacing(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#fontLetterSpacing
fontLetterSpacingType
fontLetterSpacingType() -> Any
X.fontLetterSpacingType()
Supplemental documentation: Qt 5 reference:
QFont::SpacingType QTextCharFormat::fontLetterSpacingType() const
Returns the letter spacing type of this format..
This function was introduced in Qt 5.0.
See also setFontLetterSpacingType(), setFontLetterSpacing(), and fontLetterSpacing().
Upstream PySide2 reference signatures (binding differences may apply):
fontLetterSpacingType(self) -> PySide2.QtGui.QFont.SpacingType
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#fontLetterSpacingType
fontOverline
fontOverline() -> bool
X.fontOverline() -> bool
Supplemental documentation: Qt 5 reference:
bool QTextCharFormat::fontOverline() const
Returns true if the text format's font is overlined; otherwise returns false.
See also setFontOverline() and font().
Upstream PySide2 reference signatures (binding differences may apply):
fontOverline(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#fontOverline
fontPointSize
fontPointSize() -> float
X.fontPointSize() -> float
Supplemental documentation: Qt 5 reference:
qreal QTextCharFormat::fontPointSize() const
Returns the font size used to display text in this format.
See also setFontPointSize() and font().
Upstream PySide2 reference signatures (binding differences may apply):
fontPointSize(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#fontPointSize
fontStretch
fontStretch() -> int
X.fontStretch() -> int
Supplemental documentation: Qt 5 reference:
int QTextCharFormat::fontStretch() const
Returns the current font stretching.
This function was introduced in Qt 5.0.
See also setFontStretch().
Upstream PySide2 reference signatures (binding differences may apply):
fontStretch(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#fontStretch
fontStrikeOut
fontStrikeOut() -> bool
X.fontStrikeOut() -> bool
Supplemental documentation: Qt 5 reference:
bool QTextCharFormat::fontStrikeOut() const
Returns true if the text format's font is struck out (has a horizontal line drawn
through it); otherwise returns false.
See also setFontStrikeOut() and font().
Upstream PySide2 reference signatures (binding differences may apply):
fontStrikeOut(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#fontStrikeOut
fontStyleHint
fontStyleHint() -> Any
X.fontStyleHint()
Supplemental documentation: Qt 5 reference:
QFont::StyleHint QTextCharFormat::fontStyleHint() const
Returns the font style hint.
This function was introduced in Qt 4.5.
See also setFontStyleHint() and font().
Upstream PySide2 reference signatures (binding differences may apply):
fontStyleHint(self) -> PySide2.QtGui.QFont.StyleHint
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#fontStyleHint
fontStyleStrategy
fontStyleStrategy() -> Any
X.fontStyleStrategy()
Supplemental documentation: Qt 5 reference:
QFont::StyleStrategy QTextCharFormat::fontStyleStrategy() const
Returns the current font style strategy.
This function was introduced in Qt 4.5.
See also setFontStyleStrategy() and font().
Upstream PySide2 reference signatures (binding differences may apply):
fontStyleStrategy(self) -> PySide2.QtGui.QFont.StyleStrategy
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#fontStyleStrategy
fontUnderline
fontUnderline() -> bool
X.fontUnderline() -> bool
Supplemental documentation: Qt 5 reference:
bool QTextCharFormat::fontUnderline() const
Returns true if the text format's font is underlined; otherwise returns false.
See also setFontUnderline() and font().
Upstream PySide2 reference signatures (binding differences may apply):
fontUnderline(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#fontUnderline
fontWeight
fontWeight() -> int
X.fontWeight() -> int
Supplemental documentation: Qt 5 reference:
int QTextCharFormat::fontWeight() const
Returns the text format's font weight.
See also setFontWeight(), font(), and QFont::Weight.
Upstream PySide2 reference signatures (binding differences may apply):
fontWeight(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#fontWeight
fontWordSpacing
fontWordSpacing() -> float
X.fontWordSpacing() -> float
Supplemental documentation: Qt 5 reference:
qreal QTextCharFormat::fontWordSpacing() const
Returns the current word spacing value.
This function was introduced in Qt 4.4.
See also setFontWordSpacing().
Upstream PySide2 reference signatures (binding differences may apply):
fontWordSpacing(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#fontWordSpacing
isAnchor
isAnchor() -> bool
X.isAnchor() -> bool
Supplemental documentation: Qt 5 reference:
bool QTextCharFormat::isAnchor() const
Returns true if the text is formatted as an anchor; otherwise returns false.
See also setAnchor(), setAnchorHref(), and setAnchorNames().
Upstream PySide2 reference signatures (binding differences may apply):
isAnchor(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#isAnchor
isValid
isValid() -> bool
X.isValid() -> bool
Supplemental documentation: Qt 5 reference:
bool QTextCharFormat::isValid() const
Returns true if this character format is valid; otherwise returns false.
Upstream PySide2 reference signatures (binding differences may apply):
isValid(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#isValid
setAnchor
setAnchor(anchor: bool) -> None
X.setAnchor(anchor)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setAnchor(bool anchor)
If anchor is true, text with this format represents an anchor, and is formatted in the appropriate way; otherwise the text is formatted normally. (Anchors are hyperlinks which are often shown underlined and in a different color from plain text.)
The way the text is rendered is independent of whether or not the format has a valid anchor defined. Use setAnchorHref(), and optionally setAnchorNames() to create a hypertext link.
See also isAnchor().
Upstream PySide2 reference signatures (binding differences may apply):
setAnchor(self, anchor: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setAnchor
setAnchorHref
setAnchorHref(value: str) -> None
X.setAnchorHref(value)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setAnchorHref(const QString \&value)
Sets the hypertext link for the text format to the given value. This is typically a URL like "http://example.com/index.html".
The anchor will be displayed with the value as its display text; if you want to display different text call setAnchorNames().
To format the text as a hypertext link use setAnchor().
See also anchorHref().
Upstream PySide2 reference signatures (binding differences may apply):
setAnchorHref(self, value: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setAnchorHref
setAnchorNames
setAnchorNames(names: Any) -> None
X.setAnchorNames(names)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setAnchorNames(const QStringList \&names)
Sets the text format's anchor names. For the anchor to work as a hyperlink, the destination must be set with setAnchorHref() and the anchor must be enabled with setAnchor().
This function was introduced in Qt 4.3.
See also anchorNames().
Upstream PySide2 reference signatures (binding differences may apply):
setAnchorNames(self, names: typing.Sequence[str]) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setAnchorNames
setFont
setFont(font: Any, behavior: Any) -> None
X.setFont(font, behavior)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setFont(const QFont \&font, QTextCharFormat::FontPropertiesInheritanceBehavior behavior)
Sets the text format's font.
If behavior is QTextCharFormat::FontPropertiesAll, the font property that has not been explicitly set is treated like as it were set with default value; If behavior is QTextCharFormat::FontPropertiesSpecifiedOnly, the font property that has not been explicitly set is ignored and the respective property value remains unchanged.
This function was introduced in Qt 5.3.
See also font().
void QTextCharFormat::setFont(const QFont \&font)
This is an overloaded function.
Sets the text format's font.
See also font().
Upstream PySide2 reference signatures (binding differences may apply):
setFont(self, font: PySide2.QtGui.QFont) -> None
setFont(self, font: PySide2.QtGui.QFont, behavior: PySide2.QtGui.QTextCharFormat.FontPropertiesInheritanceBehavior) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setFont