KLayout 0.29.8 (2024-11-26 926dac96c) [master]

API reference - Class QTextCharFormat

Notation used in Ruby API documentation

Module: QtGui

Description: Binding of QTextCharFormat

Class hierarchy: QTextCharFormat » QTextFormat

Sub-classes: UnderlineStyle, QFlags_UnderlineStyle, VerticalAlignment, QFlags_VerticalAlignment

Public constructors

new QTextCharFormatnewConstructor QTextCharFormat::QTextCharFormat()

Public methods

void_assign(const QTextCharFormat other)Assigns another object to self
[const]QTextCharFormat ptr_const_castReturns a non-const reference to self.
void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
[const]boolanchorMethod bool QTextCharFormat::isAnchor()
voidanchor=(bool anchor)Method void QTextCharFormat::setAnchor(bool anchor)
[const]stringanchorHrefMethod QString QTextCharFormat::anchorHref()
voidanchorHref=(string value)Method void QTextCharFormat::setAnchorHref(const QString &value)
[const]stringanchorNameMethod QString QTextCharFormat::anchorName()
voidanchorName=(string name)Method void QTextCharFormat::setAnchorName(const QString &name)
[const]string[]anchorNamesMethod QStringList QTextCharFormat::anchorNames()
voidanchorNames=(string[] names)Method void QTextCharFormat::setAnchorNames(const QStringList &names)
[const]new QTextCharFormat ptrdupCreates a copy of self
[const]QFontfontMethod QFont QTextCharFormat::font()
voidfont=(const QFont font)Method void QTextCharFormat::setFont(const QFont &font)
[const]QFont_CapitalizationfontCapitalizationMethod QFont::Capitalization QTextCharFormat::fontCapitalization()
voidfontCapitalization=(const QFont_Capitalization capitalization)Method void QTextCharFormat::setFontCapitalization(QFont::Capitalization capitalization)
[const]stringfontFamilyMethod QString QTextCharFormat::fontFamily()
voidfontFamily=(string family)Method void QTextCharFormat::setFontFamily(const QString &family)
[const]boolfontFixedPitchMethod bool QTextCharFormat::fontFixedPitch()
voidfontFixedPitch=(bool fixedPitch)Method void QTextCharFormat::setFontFixedPitch(bool fixedPitch)
[const]boolfontItalicMethod bool QTextCharFormat::fontItalic()
voidfontItalic=(bool italic)Method void QTextCharFormat::setFontItalic(bool italic)
[const]boolfontKerningMethod bool QTextCharFormat::fontKerning()
voidfontKerning=(bool enable)Method void QTextCharFormat::setFontKerning(bool enable)
[const]doublefontLetterSpacingMethod double QTextCharFormat::fontLetterSpacing()
voidfontLetterSpacing=(double spacing)Method void QTextCharFormat::setFontLetterSpacing(double spacing)
[const]boolfontOverlineMethod bool QTextCharFormat::fontOverline()
voidfontOverline=(bool overline)Method void QTextCharFormat::setFontOverline(bool overline)
[const]doublefontPointSizeMethod double QTextCharFormat::fontPointSize()
voidfontPointSize=(double size)Method void QTextCharFormat::setFontPointSize(double size)
[const]boolfontStrikeOutMethod bool QTextCharFormat::fontStrikeOut()
voidfontStrikeOut=(bool strikeOut)Method void QTextCharFormat::setFontStrikeOut(bool strikeOut)
[const]QFont_StyleHintfontStyleHintMethod QFont::StyleHint QTextCharFormat::fontStyleHint()
[const]QFont_StyleStrategyfontStyleStrategyMethod QFont::StyleStrategy QTextCharFormat::fontStyleStrategy()
voidfontStyleStrategy=(const QFont_StyleStrategy strategy)Method void QTextCharFormat::setFontStyleStrategy(QFont::StyleStrategy strategy)
[const]boolfontUnderlineMethod bool QTextCharFormat::fontUnderline()
voidfontUnderline=(bool underline)Method void QTextCharFormat::setFontUnderline(bool underline)
[const]intfontWeightMethod int QTextCharFormat::fontWeight()
voidfontWeight=(int weight)Method void QTextCharFormat::setFontWeight(int weight)
[const]doublefontWordSpacingMethod double QTextCharFormat::fontWordSpacing()
voidfontWordSpacing=(double spacing)Method void QTextCharFormat::setFontWordSpacing(double spacing)
[const]boolisAnchor?Method bool QTextCharFormat::isAnchor()
[const]boolisValid?Method bool QTextCharFormat::isValid()
voidsetAnchor(bool anchor)Method void QTextCharFormat::setAnchor(bool anchor)
voidsetAnchorHref(string value)Method void QTextCharFormat::setAnchorHref(const QString &value)
voidsetAnchorName(string name)Method void QTextCharFormat::setAnchorName(const QString &name)
voidsetAnchorNames(string[] names)Method void QTextCharFormat::setAnchorNames(const QStringList &names)
voidsetFont(const QFont font)Method void QTextCharFormat::setFont(const QFont &font)
voidsetFontCapitalization(const QFont_Capitalization capitalization)Method void QTextCharFormat::setFontCapitalization(QFont::Capitalization capitalization)
voidsetFontFamily(string family)Method void QTextCharFormat::setFontFamily(const QString &family)
voidsetFontFixedPitch(bool fixedPitch)Method void QTextCharFormat::setFontFixedPitch(bool fixedPitch)
voidsetFontItalic(bool italic)Method void QTextCharFormat::setFontItalic(bool italic)
voidsetFontKerning(bool enable)Method void QTextCharFormat::setFontKerning(bool enable)
voidsetFontLetterSpacing(double spacing)Method void QTextCharFormat::setFontLetterSpacing(double spacing)
voidsetFontOverline(bool overline)Method void QTextCharFormat::setFontOverline(bool overline)
voidsetFontPointSize(double size)Method void QTextCharFormat::setFontPointSize(double size)
voidsetFontStrikeOut(bool strikeOut)Method void QTextCharFormat::setFontStrikeOut(bool strikeOut)
voidsetFontStyleHint(const QFont_StyleHint hint,
const QFont_StyleStrategy strategy = QFont::PreferDefault)
Method void QTextCharFormat::setFontStyleHint(QFont::StyleHint hint, QFont::StyleStrategy strategy)
voidsetFontStyleStrategy(const QFont_StyleStrategy strategy)Method void QTextCharFormat::setFontStyleStrategy(QFont::StyleStrategy strategy)
voidsetFontUnderline(bool underline)Method void QTextCharFormat::setFontUnderline(bool underline)
voidsetFontWeight(int weight)Method void QTextCharFormat::setFontWeight(int weight)
voidsetFontWordSpacing(double spacing)Method void QTextCharFormat::setFontWordSpacing(double spacing)
voidsetTableCellColumnSpan(int tableCellColumnSpan)Method void QTextCharFormat::setTableCellColumnSpan(int tableCellColumnSpan)
voidsetTableCellRowSpan(int tableCellRowSpan)Method void QTextCharFormat::setTableCellRowSpan(int tableCellRowSpan)
voidsetTextOutline(const QPen pen)Method void QTextCharFormat::setTextOutline(const QPen &pen)
voidsetToolTip(string tip)Method void QTextCharFormat::setToolTip(const QString &tip)
voidsetUnderlineColor(const QColor color)Method void QTextCharFormat::setUnderlineColor(const QColor &color)
voidsetUnderlineStyle(const QTextCharFormat_UnderlineStyle style)Method void QTextCharFormat::setUnderlineStyle(QTextCharFormat::UnderlineStyle style)
voidsetVerticalAlignment(const QTextCharFormat_VerticalAlignment alignment)Method void QTextCharFormat::setVerticalAlignment(QTextCharFormat::VerticalAlignment alignment)
[const]inttableCellColumnSpanMethod int QTextCharFormat::tableCellColumnSpan()
voidtableCellColumnSpan=(int tableCellColumnSpan)Method void QTextCharFormat::setTableCellColumnSpan(int tableCellColumnSpan)
[const]inttableCellRowSpanMethod int QTextCharFormat::tableCellRowSpan()
voidtableCellRowSpan=(int tableCellRowSpan)Method void QTextCharFormat::setTableCellRowSpan(int tableCellRowSpan)
[const]QPentextOutlineMethod QPen QTextCharFormat::textOutline()
voidtextOutline=(const QPen pen)Method void QTextCharFormat::setTextOutline(const QPen &pen)
[const]stringtoolTipMethod QString QTextCharFormat::toolTip()
voidtoolTip=(string tip)Method void QTextCharFormat::setToolTip(const QString &tip)
[const]QColorunderlineColorMethod QColor QTextCharFormat::underlineColor()
voidunderlineColor=(const QColor color)Method void QTextCharFormat::setUnderlineColor(const QColor &color)
[const]QTextCharFormat_UnderlineStyleunderlineStyleMethod QTextCharFormat::UnderlineStyle QTextCharFormat::underlineStyle()
voidunderlineStyle=(const QTextCharFormat_UnderlineStyle style)Method void QTextCharFormat::setUnderlineStyle(QTextCharFormat::UnderlineStyle style)
[const]QTextCharFormat_VerticalAlignmentverticalAlignmentMethod QTextCharFormat::VerticalAlignment QTextCharFormat::verticalAlignment()
voidverticalAlignment=(const QTextCharFormat_VerticalAlignment alignment)Method void QTextCharFormat::setVerticalAlignment(QTextCharFormat::VerticalAlignment alignment)

Public static methods and constants

[static,const]QTextCharFormat_VerticalAlignmentAlignBottomEnum constant QTextCharFormat::AlignBottom
[static,const]QTextCharFormat_VerticalAlignmentAlignMiddleEnum constant QTextCharFormat::AlignMiddle
[static,const]QTextCharFormat_VerticalAlignmentAlignNormalEnum constant QTextCharFormat::AlignNormal
[static,const]QTextCharFormat_VerticalAlignmentAlignSubScriptEnum constant QTextCharFormat::AlignSubScript
[static,const]QTextCharFormat_VerticalAlignmentAlignSuperScriptEnum constant QTextCharFormat::AlignSuperScript
[static,const]QTextCharFormat_VerticalAlignmentAlignTopEnum constant QTextCharFormat::AlignTop
[static,const]QTextCharFormat_UnderlineStyleDashDotDotLineEnum constant QTextCharFormat::DashDotDotLine
[static,const]QTextCharFormat_UnderlineStyleDashDotLineEnum constant QTextCharFormat::DashDotLine
[static,const]QTextCharFormat_UnderlineStyleDashUnderlineEnum constant QTextCharFormat::DashUnderline
[static,const]QTextCharFormat_UnderlineStyleDotLineEnum constant QTextCharFormat::DotLine
[static,const]QTextCharFormat_UnderlineStyleNoUnderlineEnum constant QTextCharFormat::NoUnderline
[static,const]QTextCharFormat_UnderlineStyleSingleUnderlineEnum constant QTextCharFormat::SingleUnderline
[static,const]QTextCharFormat_UnderlineStyleSpellCheckUnderlineEnum constant QTextCharFormat::SpellCheckUnderline
[static,const]QTextCharFormat_UnderlineStyleWaveUnderlineEnum constant QTextCharFormat::WaveUnderline

Deprecated methods (protected, public, static, non-static and constructors)

voidcreateUse of this method is deprecated. Use _create instead
voiddestroyUse of this method is deprecated. Use _destroy instead
[const]booldestroyed?Use of this method is deprecated. Use _destroyed? instead
[const]boolis_const_object?Use of this method is deprecated. Use _is_const_object? instead

Detailed description

AlignBottom

Signature: [static,const] QTextCharFormat_VerticalAlignment AlignBottom

Description: Enum constant QTextCharFormat::AlignBottom

Python specific notes:
The object exposes a readable attribute 'AlignBottom'. This is the getter.

AlignMiddle

Signature: [static,const] QTextCharFormat_VerticalAlignment AlignMiddle

Description: Enum constant QTextCharFormat::AlignMiddle

Python specific notes:
The object exposes a readable attribute 'AlignMiddle'. This is the getter.

AlignNormal

Signature: [static,const] QTextCharFormat_VerticalAlignment AlignNormal

Description: Enum constant QTextCharFormat::AlignNormal

Python specific notes:
The object exposes a readable attribute 'AlignNormal'. This is the getter.

AlignSubScript

Signature: [static,const] QTextCharFormat_VerticalAlignment AlignSubScript

Description: Enum constant QTextCharFormat::AlignSubScript

Python specific notes:
The object exposes a readable attribute 'AlignSubScript'. This is the getter.

AlignSuperScript

Signature: [static,const] QTextCharFormat_VerticalAlignment AlignSuperScript

Description: Enum constant QTextCharFormat::AlignSuperScript

Python specific notes:
The object exposes a readable attribute 'AlignSuperScript'. This is the getter.

AlignTop

Signature: [static,const] QTextCharFormat_VerticalAlignment AlignTop

Description: Enum constant QTextCharFormat::AlignTop

Python specific notes:
The object exposes a readable attribute 'AlignTop'. This is the getter.

DashDotDotLine

Signature: [static,const] QTextCharFormat_UnderlineStyle DashDotDotLine

Description: Enum constant QTextCharFormat::DashDotDotLine

Python specific notes:
The object exposes a readable attribute 'DashDotDotLine'. This is the getter.

DashDotLine

Signature: [static,const] QTextCharFormat_UnderlineStyle DashDotLine

Description: Enum constant QTextCharFormat::DashDotLine

Python specific notes:
The object exposes a readable attribute 'DashDotLine'. This is the getter.

DashUnderline

Signature: [static,const] QTextCharFormat_UnderlineStyle DashUnderline

Description: Enum constant QTextCharFormat::DashUnderline

Python specific notes:
The object exposes a readable attribute 'DashUnderline'. This is the getter.

DotLine

Signature: [static,const] QTextCharFormat_UnderlineStyle DotLine

Description: Enum constant QTextCharFormat::DotLine

Python specific notes:
The object exposes a readable attribute 'DotLine'. This is the getter.

NoUnderline

Signature: [static,const] QTextCharFormat_UnderlineStyle NoUnderline

Description: Enum constant QTextCharFormat::NoUnderline

Python specific notes:
The object exposes a readable attribute 'NoUnderline'. This is the getter.

SingleUnderline

Signature: [static,const] QTextCharFormat_UnderlineStyle SingleUnderline

Description: Enum constant QTextCharFormat::SingleUnderline

Python specific notes:
The object exposes a readable attribute 'SingleUnderline'. This is the getter.

SpellCheckUnderline

Signature: [static,const] QTextCharFormat_UnderlineStyle SpellCheckUnderline

Description: Enum constant QTextCharFormat::SpellCheckUnderline

Python specific notes:
The object exposes a readable attribute 'SpellCheckUnderline'. This is the getter.

WaveUnderline

Signature: [static,const] QTextCharFormat_UnderlineStyle WaveUnderline

Description: Enum constant QTextCharFormat::WaveUnderline

Python specific notes:
The object exposes a readable attribute 'WaveUnderline'. This is the getter.

_assign

Signature: void _assign (const QTextCharFormat other)

Description: Assigns another object to self

_const_cast

Signature: [const] QTextCharFormat ptr _const_cast

Description: Returns a non-const reference to self.

Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects.

This method has been introduced in version 0.29.6.

_create

Signature: void _create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

_destroy

Signature: void _destroy

Description: Explicitly destroys the object

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

_destroyed?

Signature: [const] bool _destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

_is_const_object?

Signature: [const] bool _is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

_manage

Signature: void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

_unmanage

Signature: void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

anchor

Signature: [const] bool anchor

Description: Method bool QTextCharFormat::isAnchor()

Python specific notes:
The object exposes a readable attribute 'anchor'. This is the getter.

anchor=

Signature: void anchor= (bool anchor)

Description: Method void QTextCharFormat::setAnchor(bool anchor)

Python specific notes:
The object exposes a writable attribute 'anchor'. This is the setter.

anchorHref

Signature: [const] string anchorHref

Description: Method QString QTextCharFormat::anchorHref()

Python specific notes:
The object exposes a readable attribute 'anchorHref'. This is the getter.

anchorHref=

Signature: void anchorHref= (string value)

Description: Method void QTextCharFormat::setAnchorHref(const QString &value)

Python specific notes:
The object exposes a writable attribute 'anchorHref'. This is the setter.

anchorName

Signature: [const] string anchorName

Description: Method QString QTextCharFormat::anchorName()

Python specific notes:
The object exposes a readable attribute 'anchorName'. This is the getter.

anchorName=

Signature: void anchorName= (string name)

Description: Method void QTextCharFormat::setAnchorName(const QString &name)

Python specific notes:
The object exposes a writable attribute 'anchorName'. This is the setter.

anchorNames

Signature: [const] string[] anchorNames

Description: Method QStringList QTextCharFormat::anchorNames()

Python specific notes:
The object exposes a readable attribute 'anchorNames'. This is the getter.

anchorNames=

Signature: void anchorNames= (string[] names)

Description: Method void QTextCharFormat::setAnchorNames(const QStringList &names)

Python specific notes:
The object exposes a writable attribute 'anchorNames'. This is the setter.

create

Signature: void create

Description: Ensures the C++ object is created

Use of this method is deprecated. Use _create instead

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

destroy

Signature: void destroy

Description: Explicitly destroys the object

Use of this method is deprecated. Use _destroy instead

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

destroyed?

Signature: [const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

Use of this method is deprecated. Use _destroyed? instead

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

dup

Signature: [const] new QTextCharFormat ptr dup

Description: Creates a copy of self

Python specific notes:
This method also implements '__copy__' and '__deepcopy__'.

font

Signature: [const] QFont font

Description: Method QFont QTextCharFormat::font()

Python specific notes:
The object exposes a readable attribute 'font'. This is the getter.

font=

Signature: void font= (const QFont font)

Description: Method void QTextCharFormat::setFont(const QFont &font)

Python specific notes:
The object exposes a writable attribute 'font'. This is the setter.

fontCapitalization

Signature: [const] QFont_Capitalization fontCapitalization

Description: Method QFont::Capitalization QTextCharFormat::fontCapitalization()

Python specific notes:
The object exposes a readable attribute 'fontCapitalization'. This is the getter.

fontCapitalization=

Signature: void fontCapitalization= (const QFont_Capitalization capitalization)

Description: Method void QTextCharFormat::setFontCapitalization(QFont::Capitalization capitalization)

Python specific notes:
The object exposes a writable attribute 'fontCapitalization'. This is the setter.

fontFamily

Signature: [const] string fontFamily

Description: Method QString QTextCharFormat::fontFamily()

Python specific notes:
The object exposes a readable attribute 'fontFamily'. This is the getter.

fontFamily=

Signature: void fontFamily= (string family)

Description: Method void QTextCharFormat::setFontFamily(const QString &family)

Python specific notes:
The object exposes a writable attribute 'fontFamily'. This is the setter.

fontFixedPitch

Signature: [const] bool fontFixedPitch

Description: Method bool QTextCharFormat::fontFixedPitch()

Python specific notes:
The object exposes a readable attribute 'fontFixedPitch'. This is the getter.

fontFixedPitch=

Signature: void fontFixedPitch= (bool fixedPitch)

Description: Method void QTextCharFormat::setFontFixedPitch(bool fixedPitch)

Python specific notes:
The object exposes a writable attribute 'fontFixedPitch'. This is the setter.

fontItalic

Signature: [const] bool fontItalic

Description: Method bool QTextCharFormat::fontItalic()

Python specific notes:
The object exposes a readable attribute 'fontItalic'. This is the getter.

fontItalic=

Signature: void fontItalic= (bool italic)

Description: Method void QTextCharFormat::setFontItalic(bool italic)

Python specific notes:
The object exposes a writable attribute 'fontItalic'. This is the setter.

fontKerning

Signature: [const] bool fontKerning

Description: Method bool QTextCharFormat::fontKerning()

Python specific notes:
The object exposes a readable attribute 'fontKerning'. This is the getter.

fontKerning=

Signature: void fontKerning= (bool enable)

Description: Method void QTextCharFormat::setFontKerning(bool enable)

Python specific notes:
The object exposes a writable attribute 'fontKerning'. This is the setter.

fontLetterSpacing

Signature: [const] double fontLetterSpacing

Description: Method double QTextCharFormat::fontLetterSpacing()

Python specific notes:
The object exposes a readable attribute 'fontLetterSpacing'. This is the getter.

fontLetterSpacing=

Signature: void fontLetterSpacing= (double spacing)

Description: Method void QTextCharFormat::setFontLetterSpacing(double spacing)

Python specific notes:
The object exposes a writable attribute 'fontLetterSpacing'. This is the setter.

fontOverline

Signature: [const] bool fontOverline

Description: Method bool QTextCharFormat::fontOverline()

Python specific notes:
The object exposes a readable attribute 'fontOverline'. This is the getter.

fontOverline=

Signature: void fontOverline= (bool overline)

Description: Method void QTextCharFormat::setFontOverline(bool overline)

Python specific notes:
The object exposes a writable attribute 'fontOverline'. This is the setter.

fontPointSize

Signature: [const] double fontPointSize

Description: Method double QTextCharFormat::fontPointSize()

Python specific notes:
The object exposes a readable attribute 'fontPointSize'. This is the getter.

fontPointSize=

Signature: void fontPointSize= (double size)

Description: Method void QTextCharFormat::setFontPointSize(double size)

Python specific notes:
The object exposes a writable attribute 'fontPointSize'. This is the setter.

fontStrikeOut

Signature: [const] bool fontStrikeOut

Description: Method bool QTextCharFormat::fontStrikeOut()

Python specific notes:
The object exposes a readable attribute 'fontStrikeOut'. This is the getter.

fontStrikeOut=

Signature: void fontStrikeOut= (bool strikeOut)

Description: Method void QTextCharFormat::setFontStrikeOut(bool strikeOut)

Python specific notes:
The object exposes a writable attribute 'fontStrikeOut'. This is the setter.

fontStyleHint

Signature: [const] QFont_StyleHint fontStyleHint

Description: Method QFont::StyleHint QTextCharFormat::fontStyleHint()

Python specific notes:
The object exposes a readable attribute 'fontStyleHint'. This is the getter.

fontStyleStrategy

Signature: [const] QFont_StyleStrategy fontStyleStrategy

Description: Method QFont::StyleStrategy QTextCharFormat::fontStyleStrategy()

Python specific notes:
The object exposes a readable attribute 'fontStyleStrategy'. This is the getter.

fontStyleStrategy=

Signature: void fontStyleStrategy= (const QFont_StyleStrategy strategy)

Description: Method void QTextCharFormat::setFontStyleStrategy(QFont::StyleStrategy strategy)

Python specific notes:
The object exposes a writable attribute 'fontStyleStrategy'. This is the setter.

fontUnderline

Signature: [const] bool fontUnderline

Description: Method bool QTextCharFormat::fontUnderline()

Python specific notes:
The object exposes a readable attribute 'fontUnderline'. This is the getter.

fontUnderline=

Signature: void fontUnderline= (bool underline)

Description: Method void QTextCharFormat::setFontUnderline(bool underline)

Python specific notes:
The object exposes a writable attribute 'fontUnderline'. This is the setter.

fontWeight

Signature: [const] int fontWeight

Description: Method int QTextCharFormat::fontWeight()

Python specific notes:
The object exposes a readable attribute 'fontWeight'. This is the getter.

fontWeight=

Signature: void fontWeight= (int weight)

Description: Method void QTextCharFormat::setFontWeight(int weight)

Python specific notes:
The object exposes a writable attribute 'fontWeight'. This is the setter.

fontWordSpacing

Signature: [const] double fontWordSpacing

Description: Method double QTextCharFormat::fontWordSpacing()

Python specific notes:
The object exposes a readable attribute 'fontWordSpacing'. This is the getter.

fontWordSpacing=

Signature: void fontWordSpacing= (double spacing)

Description: Method void QTextCharFormat::setFontWordSpacing(double spacing)

Python specific notes:
The object exposes a writable attribute 'fontWordSpacing'. This is the setter.

isAnchor?

Signature: [const] bool isAnchor?

Description: Method bool QTextCharFormat::isAnchor()

Python specific notes:
The object exposes a readable attribute 'anchor'. This is the getter.

isValid?

Signature: [const] bool isValid?

Description: Method bool QTextCharFormat::isValid()

is_const_object?

Signature: [const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

Use of this method is deprecated. Use _is_const_object? instead

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

new

Signature: [static] new QTextCharFormat new

Description: Constructor QTextCharFormat::QTextCharFormat()

This method creates an object of class QTextCharFormat.

Python specific notes:
This method is the default initializer of the object.

setAnchor

Signature: void setAnchor (bool anchor)

Description: Method void QTextCharFormat::setAnchor(bool anchor)

Python specific notes:
The object exposes a writable attribute 'anchor'. This is the setter.

setAnchorHref

Signature: void setAnchorHref (string value)

Description: Method void QTextCharFormat::setAnchorHref(const QString &value)

Python specific notes:
The object exposes a writable attribute 'anchorHref'. This is the setter.

setAnchorName

Signature: void setAnchorName (string name)

Description: Method void QTextCharFormat::setAnchorName(const QString &name)

Python specific notes:
The object exposes a writable attribute 'anchorName'. This is the setter.

setAnchorNames

Signature: void setAnchorNames (string[] names)

Description: Method void QTextCharFormat::setAnchorNames(const QStringList &names)

Python specific notes:
The object exposes a writable attribute 'anchorNames'. This is the setter.

setFont

Signature: void setFont (const QFont font)

Description: Method void QTextCharFormat::setFont(const QFont &font)

Python specific notes:
The object exposes a writable attribute 'font'. This is the setter.

setFontCapitalization

Signature: void setFontCapitalization (const QFont_Capitalization capitalization)

Description: Method void QTextCharFormat::setFontCapitalization(QFont::Capitalization capitalization)

Python specific notes:
The object exposes a writable attribute 'fontCapitalization'. This is the setter.

setFontFamily

Signature: void setFontFamily (string family)

Description: Method void QTextCharFormat::setFontFamily(const QString &family)

Python specific notes:
The object exposes a writable attribute 'fontFamily'. This is the setter.

setFontFixedPitch

Signature: void setFontFixedPitch (bool fixedPitch)

Description: Method void QTextCharFormat::setFontFixedPitch(bool fixedPitch)

Python specific notes:
The object exposes a writable attribute 'fontFixedPitch'. This is the setter.

setFontItalic

Signature: void setFontItalic (bool italic)

Description: Method void QTextCharFormat::setFontItalic(bool italic)

Python specific notes:
The object exposes a writable attribute 'fontItalic'. This is the setter.

setFontKerning

Signature: void setFontKerning (bool enable)

Description: Method void QTextCharFormat::setFontKerning(bool enable)

Python specific notes:
The object exposes a writable attribute 'fontKerning'. This is the setter.

setFontLetterSpacing

Signature: void setFontLetterSpacing (double spacing)

Description: Method void QTextCharFormat::setFontLetterSpacing(double spacing)

Python specific notes:
The object exposes a writable attribute 'fontLetterSpacing'. This is the setter.

setFontOverline

Signature: void setFontOverline (bool overline)

Description: Method void QTextCharFormat::setFontOverline(bool overline)

Python specific notes:
The object exposes a writable attribute 'fontOverline'. This is the setter.

setFontPointSize

Signature: void setFontPointSize (double size)

Description: Method void QTextCharFormat::setFontPointSize(double size)

Python specific notes:
The object exposes a writable attribute 'fontPointSize'. This is the setter.

setFontStrikeOut

Signature: void setFontStrikeOut (bool strikeOut)

Description: Method void QTextCharFormat::setFontStrikeOut(bool strikeOut)

Python specific notes:
The object exposes a writable attribute 'fontStrikeOut'. This is the setter.

setFontStyleHint

Signature: void setFontStyleHint (const QFont_StyleHint hint, const QFont_StyleStrategy strategy = QFont::PreferDefault)

Description: Method void QTextCharFormat::setFontStyleHint(QFont::StyleHint hint, QFont::StyleStrategy strategy)

setFontStyleStrategy

Signature: void setFontStyleStrategy (const QFont_StyleStrategy strategy)

Description: Method void QTextCharFormat::setFontStyleStrategy(QFont::StyleStrategy strategy)

Python specific notes:
The object exposes a writable attribute 'fontStyleStrategy'. This is the setter.

setFontUnderline

Signature: void setFontUnderline (bool underline)

Description: Method void QTextCharFormat::setFontUnderline(bool underline)

Python specific notes:
The object exposes a writable attribute 'fontUnderline'. This is the setter.

setFontWeight

Signature: void setFontWeight (int weight)

Description: Method void QTextCharFormat::setFontWeight(int weight)

Python specific notes:
The object exposes a writable attribute 'fontWeight'. This is the setter.

setFontWordSpacing

Signature: void setFontWordSpacing (double spacing)

Description: Method void QTextCharFormat::setFontWordSpacing(double spacing)

Python specific notes:
The object exposes a writable attribute 'fontWordSpacing'. This is the setter.

setTableCellColumnSpan

Signature: void setTableCellColumnSpan (int tableCellColumnSpan)

Description: Method void QTextCharFormat::setTableCellColumnSpan(int tableCellColumnSpan)

Python specific notes:
The object exposes a writable attribute 'tableCellColumnSpan'. This is the setter.

setTableCellRowSpan

Signature: void setTableCellRowSpan (int tableCellRowSpan)

Description: Method void QTextCharFormat::setTableCellRowSpan(int tableCellRowSpan)

Python specific notes:
The object exposes a writable attribute 'tableCellRowSpan'. This is the setter.

setTextOutline

Signature: void setTextOutline (const QPen pen)

Description: Method void QTextCharFormat::setTextOutline(const QPen &pen)

Python specific notes:
The object exposes a writable attribute 'textOutline'. This is the setter.

setToolTip

Signature: void setToolTip (string tip)

Description: Method void QTextCharFormat::setToolTip(const QString &tip)

Python specific notes:
The object exposes a writable attribute 'toolTip'. This is the setter.

setUnderlineColor

Signature: void setUnderlineColor (const QColor color)

Description: Method void QTextCharFormat::setUnderlineColor(const QColor &color)

Python specific notes:
The object exposes a writable attribute 'underlineColor'. This is the setter.

setUnderlineStyle

Signature: void setUnderlineStyle (const QTextCharFormat_UnderlineStyle style)

Description: Method void QTextCharFormat::setUnderlineStyle(QTextCharFormat::UnderlineStyle style)

Python specific notes:
The object exposes a writable attribute 'underlineStyle'. This is the setter.

setVerticalAlignment

Signature: void setVerticalAlignment (const QTextCharFormat_VerticalAlignment alignment)

Description: Method void QTextCharFormat::setVerticalAlignment(QTextCharFormat::VerticalAlignment alignment)

Python specific notes:
The object exposes a writable attribute 'verticalAlignment'. This is the setter.

tableCellColumnSpan

Signature: [const] int tableCellColumnSpan

Description: Method int QTextCharFormat::tableCellColumnSpan()

Python specific notes:
The object exposes a readable attribute 'tableCellColumnSpan'. This is the getter.

tableCellColumnSpan=

Signature: void tableCellColumnSpan= (int tableCellColumnSpan)

Description: Method void QTextCharFormat::setTableCellColumnSpan(int tableCellColumnSpan)

Python specific notes:
The object exposes a writable attribute 'tableCellColumnSpan'. This is the setter.

tableCellRowSpan

Signature: [const] int tableCellRowSpan

Description: Method int QTextCharFormat::tableCellRowSpan()

Python specific notes:
The object exposes a readable attribute 'tableCellRowSpan'. This is the getter.

tableCellRowSpan=

Signature: void tableCellRowSpan= (int tableCellRowSpan)

Description: Method void QTextCharFormat::setTableCellRowSpan(int tableCellRowSpan)

Python specific notes:
The object exposes a writable attribute 'tableCellRowSpan'. This is the setter.

textOutline

Signature: [const] QPen textOutline

Description: Method QPen QTextCharFormat::textOutline()

Python specific notes:
The object exposes a readable attribute 'textOutline'. This is the getter.

textOutline=

Signature: void textOutline= (const QPen pen)

Description: Method void QTextCharFormat::setTextOutline(const QPen &pen)

Python specific notes:
The object exposes a writable attribute 'textOutline'. This is the setter.

toolTip

Signature: [const] string toolTip

Description: Method QString QTextCharFormat::toolTip()

Python specific notes:
The object exposes a readable attribute 'toolTip'. This is the getter.

toolTip=

Signature: void toolTip= (string tip)

Description: Method void QTextCharFormat::setToolTip(const QString &tip)

Python specific notes:
The object exposes a writable attribute 'toolTip'. This is the setter.

underlineColor

Signature: [const] QColor underlineColor

Description: Method QColor QTextCharFormat::underlineColor()

Python specific notes:
The object exposes a readable attribute 'underlineColor'. This is the getter.

underlineColor=

Signature: void underlineColor= (const QColor color)

Description: Method void QTextCharFormat::setUnderlineColor(const QColor &color)

Python specific notes:
The object exposes a writable attribute 'underlineColor'. This is the setter.

underlineStyle

Signature: [const] QTextCharFormat_UnderlineStyle underlineStyle

Description: Method QTextCharFormat::UnderlineStyle QTextCharFormat::underlineStyle()

Python specific notes:
The object exposes a readable attribute 'underlineStyle'. This is the getter.

underlineStyle=

Signature: void underlineStyle= (const QTextCharFormat_UnderlineStyle style)

Description: Method void QTextCharFormat::setUnderlineStyle(QTextCharFormat::UnderlineStyle style)

Python specific notes:
The object exposes a writable attribute 'underlineStyle'. This is the setter.

verticalAlignment

Signature: [const] QTextCharFormat_VerticalAlignment verticalAlignment

Description: Method QTextCharFormat::VerticalAlignment QTextCharFormat::verticalAlignment()

Python specific notes:
The object exposes a readable attribute 'verticalAlignment'. This is the getter.

verticalAlignment=

Signature: void verticalAlignment= (const QTextCharFormat_VerticalAlignment alignment)

Description: Method void QTextCharFormat::setVerticalAlignment(QTextCharFormat::VerticalAlignment alignment)

Python specific notes:
The object exposes a writable attribute 'verticalAlignment'. This is the setter.