Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide6.QtGui »

Classe « QTextFormat »

Informations générales

Héritage

builtins.object
    Object
        QTextFormat

Définition

class QTextFormat(Object):

Description [extrait de QTextFormat.__doc__]

QTextFormat(self) -> None
QTextFormat(self, rhs: PySide6.QtGui.QTextFormat) -> None
QTextFormat(self, type: int) -> None

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
AnchorHrefPySide6.QtGui.QTextFormat.Property.AnchorHref
AnchorNamePySide6.QtGui.QTextFormat.Property.AnchorName
BackgroundBrushPySide6.QtGui.QTextFormat.Property.BackgroundBrush
BackgroundImageUrlPySide6.QtGui.QTextFormat.Property.BackgroundImageUrl
BlockAlignmentPySide6.QtGui.QTextFormat.Property.BlockAlignment
BlockBottomMarginPySide6.QtGui.QTextFormat.Property.BlockBottomMargin
BlockCodeFencePySide6.QtGui.QTextFormat.Property.BlockCodeFence
BlockCodeLanguagePySide6.QtGui.QTextFormat.Property.BlockCodeLanguage
BlockFormatPySide6.QtGui.QTextFormat.FormatType.BlockFormat
BlockIndentPySide6.QtGui.QTextFormat.Property.BlockIndent
BlockLeftMarginPySide6.QtGui.QTextFormat.Property.BlockLeftMargin
BlockMarkerPySide6.QtGui.QTextFormat.Property.BlockMarker
BlockNonBreakableLinesPySide6.QtGui.QTextFormat.Property.BlockNonBreakableLines
BlockQuoteLevelPySide6.QtGui.QTextFormat.Property.BlockQuoteLevel
BlockRightMarginPySide6.QtGui.QTextFormat.Property.BlockRightMargin
BlockTopMarginPySide6.QtGui.QTextFormat.Property.BlockTopMargin
BlockTrailingHorizontalRulerWidthPySide6.QtGui.QTextFormat.Property.BlockTrailingHorizontalRulerWidth
CharFormatPySide6.QtGui.QTextFormat.FormatType.CharFormat
CssFloatPySide6.QtGui.QTextFormat.Property.CssFloat
FirstFontPropertyPySide6.QtGui.QTextFormat.Property.FirstFontProperty
FontCapitalizationPySide6.QtGui.QTextFormat.Property.FontCapitalization
FontFamiliesPySide6.QtGui.QTextFormat.Property.FontFamilies
FontFamilyPySide6.QtGui.QTextFormat.Property.FontFamily
FontFixedPitchPySide6.QtGui.QTextFormat.Property.FontFixedPitch
FontHintingPreferencePySide6.QtGui.QTextFormat.Property.FontHintingPreference
FontItalicPySide6.QtGui.QTextFormat.Property.FontItalic
FontKerningPySide6.QtGui.QTextFormat.Property.FontKerning
FontLetterSpacingPySide6.QtGui.QTextFormat.Property.FontLetterSpacing
FontLetterSpacingTypePySide6.QtGui.QTextFormat.Property.FontLetterSpacingType
FontOverlinePySide6.QtGui.QTextFormat.Property.FontOverline
FontPixelSizePySide6.QtGui.QTextFormat.Property.FontPixelSize
FontPointSizePySide6.QtGui.QTextFormat.Property.FontPointSize
FontSizeAdjustmentPySide6.QtGui.QTextFormat.Property.FontSizeAdjustment
FontSizeIncrementPySide6.QtGui.QTextFormat.Property.FontSizeIncrement
FontStretchPySide6.QtGui.QTextFormat.Property.FontStretch
FontStrikeOutPySide6.QtGui.QTextFormat.Property.FontStrikeOut
FontStyleHintPySide6.QtGui.QTextFormat.Property.FontStyleHint
FontStyleNamePySide6.QtGui.QTextFormat.Property.FontStyleName
FontStyleStrategyPySide6.QtGui.QTextFormat.Property.FontStyleStrategy
FontUnderlinePySide6.QtGui.QTextFormat.Property.FontUnderline
FontWeightPySide6.QtGui.QTextFormat.Property.FontWeight
FontWordSpacingPySide6.QtGui.QTextFormat.Property.FontWordSpacing
ForegroundBrushPySide6.QtGui.QTextFormat.Property.ForegroundBrush
FrameBorderPySide6.QtGui.QTextFormat.Property.FrameBorder
FrameBorderBrushPySide6.QtGui.QTextFormat.Property.FrameBorderBrush
FrameBorderStylePySide6.QtGui.QTextFormat.Property.FrameBorderStyle
FrameBottomMarginPySide6.QtGui.QTextFormat.Property.FrameBottomMargin
FrameFormatPySide6.QtGui.QTextFormat.FormatType.FrameFormat
FrameHeightPySide6.QtGui.QTextFormat.Property.FrameHeight
FrameLeftMarginPySide6.QtGui.QTextFormat.Property.FrameLeftMargin
FrameMarginPySide6.QtGui.QTextFormat.Property.FrameMargin
FramePaddingPySide6.QtGui.QTextFormat.Property.FramePadding
FrameRightMarginPySide6.QtGui.QTextFormat.Property.FrameRightMargin
FrameTopMarginPySide6.QtGui.QTextFormat.Property.FrameTopMargin
FrameWidthPySide6.QtGui.QTextFormat.Property.FrameWidth
FullWidthSelectionPySide6.QtGui.QTextFormat.Property.FullWidthSelection
HeadingLevelPySide6.QtGui.QTextFormat.Property.HeadingLevel
ImageAltTextPySide6.QtGui.QTextFormat.Property.ImageAltText
ImageHeightPySide6.QtGui.QTextFormat.Property.ImageHeight
ImageNamePySide6.QtGui.QTextFormat.Property.ImageName
ImageObjectPySide6.QtGui.QTextFormat.ObjectTypes.ImageObject
ImageQualityPySide6.QtGui.QTextFormat.Property.ImageQuality
ImageTitlePySide6.QtGui.QTextFormat.Property.ImageTitle
ImageWidthPySide6.QtGui.QTextFormat.Property.ImageWidth
InvalidFormatPySide6.QtGui.QTextFormat.FormatType.InvalidFormat
IsAnchorPySide6.QtGui.QTextFormat.Property.IsAnchor
LastFontPropertyPySide6.QtGui.QTextFormat.Property.LastFontProperty
LayoutDirectionPySide6.QtGui.QTextFormat.Property.LayoutDirection
LineHeightPySide6.QtGui.QTextFormat.Property.LineHeight
LineHeightTypePySide6.QtGui.QTextFormat.Property.LineHeightType
ListFormatPySide6.QtGui.QTextFormat.FormatType.ListFormat
ListIndentPySide6.QtGui.QTextFormat.Property.ListIndent
ListNumberPrefixPySide6.QtGui.QTextFormat.Property.ListNumberPrefix
ListNumberSuffixPySide6.QtGui.QTextFormat.Property.ListNumberSuffix
ListStylePySide6.QtGui.QTextFormat.Property.ListStyle
NoObjectPySide6.QtGui.QTextFormat.ObjectTypes.NoObject
ObjectIndexPySide6.QtGui.QTextFormat.Property.ObjectIndex
ObjectTypePySide6.QtGui.QTextFormat.Property.ObjectType
OldFontLetterSpacingTypePySide6.QtGui.QTextFormat.Property.OldFontLetterSpacingType
OldFontStretchPySide6.QtGui.QTextFormat.Property.OldFontStretch
OldTextUnderlineColorPySide6.QtGui.QTextFormat.Property.OldTextUnderlineColor
OutlinePenPySide6.QtGui.QTextFormat.Property.OutlinePen
PageBreak_AlwaysAfterPySide6.QtGui.QTextFormat.PageBreakFlag.PageBreak_AlwaysAfter
PageBreak_AlwaysBeforePySide6.QtGui.QTextFormat.PageBreakFlag.PageBreak_AlwaysBefore
PageBreak_AutoPySide6.QtGui.QTextFormat.PageBreakFlag.PageBreak_Auto
PageBreakPolicyPySide6.QtGui.QTextFormat.Property.PageBreakPolicy
TableBorderCollapsePySide6.QtGui.QTextFormat.Property.TableBorderCollapse
TableCellBottomBorderPySide6.QtGui.QTextFormat.Property.TableCellBottomBorder
TableCellBottomBorderBrushPySide6.QtGui.QTextFormat.Property.TableCellBottomBorderBrush
TableCellBottomBorderStylePySide6.QtGui.QTextFormat.Property.TableCellBottomBorderStyle
TableCellBottomPaddingPySide6.QtGui.QTextFormat.Property.TableCellBottomPadding
TableCellColumnSpanPySide6.QtGui.QTextFormat.Property.TableCellColumnSpan
TableCellLeftBorderPySide6.QtGui.QTextFormat.Property.TableCellLeftBorder
TableCellLeftBorderBrushPySide6.QtGui.QTextFormat.Property.TableCellLeftBorderBrush
TableCellLeftBorderStylePySide6.QtGui.QTextFormat.Property.TableCellLeftBorderStyle
TableCellLeftPaddingPySide6.QtGui.QTextFormat.Property.TableCellLeftPadding
TableCellObjectPySide6.QtGui.QTextFormat.ObjectTypes.TableCellObject
TableCellPaddingPySide6.QtGui.QTextFormat.Property.TableCellPadding
TableCellRightBorderPySide6.QtGui.QTextFormat.Property.TableCellRightBorder
TableCellRightBorderBrushPySide6.QtGui.QTextFormat.Property.TableCellRightBorderBrush
TableCellRightBorderStylePySide6.QtGui.QTextFormat.Property.TableCellRightBorderStyle
TableCellRightPaddingPySide6.QtGui.QTextFormat.Property.TableCellRightPadding
TableCellRowSpanPySide6.QtGui.QTextFormat.Property.TableCellRowSpan
TableCellSpacingPySide6.QtGui.QTextFormat.Property.TableCellSpacing
TableCellTopBorderPySide6.QtGui.QTextFormat.Property.TableCellTopBorder
TableCellTopBorderBrushPySide6.QtGui.QTextFormat.Property.TableCellTopBorderBrush
TableCellTopBorderStylePySide6.QtGui.QTextFormat.Property.TableCellTopBorderStyle
TableCellTopPaddingPySide6.QtGui.QTextFormat.Property.TableCellTopPadding
TableColumnsPySide6.QtGui.QTextFormat.Property.TableColumns
TableColumnWidthConstraintsPySide6.QtGui.QTextFormat.Property.TableColumnWidthConstraints
TableHeaderRowCountPySide6.QtGui.QTextFormat.Property.TableHeaderRowCount
TableObjectPySide6.QtGui.QTextFormat.ObjectTypes.TableObject
TabPositionsPySide6.QtGui.QTextFormat.Property.TabPositions
TextBaselineOffsetPySide6.QtGui.QTextFormat.Property.TextBaselineOffset
TextIndentPySide6.QtGui.QTextFormat.Property.TextIndent
TextOutlinePySide6.QtGui.QTextFormat.Property.TextOutline
TextSubScriptBaselinePySide6.QtGui.QTextFormat.Property.TextSubScriptBaseline
TextSuperScriptBaselinePySide6.QtGui.QTextFormat.Property.TextSuperScriptBaseline
TextToolTipPySide6.QtGui.QTextFormat.Property.TextToolTip
TextUnderlineColorPySide6.QtGui.QTextFormat.Property.TextUnderlineColor
TextUnderlineStylePySide6.QtGui.QTextFormat.Property.TextUnderlineStyle
TextVerticalAlignmentPySide6.QtGui.QTextFormat.Property.TextVerticalAlignment
UserFormatPySide6.QtGui.QTextFormat.FormatType.UserFormat
UserObjectPySide6.QtGui.QTextFormat.ObjectTypes.UserObject
UserPropertyPySide6.QtGui.QTextFormat.Property.UserProperty

Liste des opérateurs

Signature de l'opérateur Description
__eq__(self, value) Return self==value. [extrait de __eq__.__doc__]
__ge__(self, value) Return self>=value. [extrait de __ge__.__doc__]
__gt__(self, value) Return self>value. [extrait de __gt__.__doc__]
__le__(self, value) Return self<=value. [extrait de __le__.__doc__]
__lshift__(self, arg__1: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream __lshift__(self, arg__1: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream [extrait de __lshift__.__doc__]
__lt__(self, value) Return self<value. [extrait de __lt__.__doc__]
__ne__(self, value) Return self!=value. [extrait de __ne__.__doc__]
__rlshift__(self, value) Return value<<self. [extrait de __rlshift__.__doc__]
__rrshift__(self, value) Return value>>self. [extrait de __rrshift__.__doc__]
__rshift__(self, arg__1: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream __rshift__(self, arg__1: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream [extrait de __rshift__.__doc__]

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__copy__() -> None __copy__() -> None [extrait de __copy__.__doc__]
__repr__(self) Return repr(self). [extrait de __repr__.__doc__]
background(self) -> PySide6.QtGui.QBrush background(self) -> PySide6.QtGui.QBrush [extrait de background.__doc__]
boolProperty(self, propertyId: int) -> bool boolProperty(self, propertyId: int) -> bool [extrait de boolProperty.__doc__]
brushProperty(self, propertyId: int) -> PySide6.QtGui.QBrush brushProperty(self, propertyId: int) -> PySide6.QtGui.QBrush [extrait de brushProperty.__doc__]
clearBackground(self) -> None clearBackground(self) -> None [extrait de clearBackground.__doc__]
clearForeground(self) -> None clearForeground(self) -> None [extrait de clearForeground.__doc__]
clearProperty(self, propertyId: int) -> None clearProperty(self, propertyId: int) -> None [extrait de clearProperty.__doc__]
colorProperty(self, propertyId: int) -> PySide6.QtGui.QColor colorProperty(self, propertyId: int) -> PySide6.QtGui.QColor [extrait de colorProperty.__doc__]
doubleProperty(self, propertyId: int) -> float doubleProperty(self, propertyId: int) -> float [extrait de doubleProperty.__doc__]
foreground(self) -> PySide6.QtGui.QBrush foreground(self) -> PySide6.QtGui.QBrush [extrait de foreground.__doc__]
FormatType
hasProperty(self, propertyId: int) -> bool hasProperty(self, propertyId: int) -> bool [extrait de hasProperty.__doc__]
intProperty(self, propertyId: int) -> int intProperty(self, propertyId: int) -> int [extrait de intProperty.__doc__]
isBlockFormat(self) -> bool isBlockFormat(self) -> bool [extrait de isBlockFormat.__doc__]
isCharFormat(self) -> bool isCharFormat(self) -> bool [extrait de isCharFormat.__doc__]
isEmpty(self) -> bool isEmpty(self) -> bool [extrait de isEmpty.__doc__]
isFrameFormat(self) -> bool isFrameFormat(self) -> bool [extrait de isFrameFormat.__doc__]
isImageFormat(self) -> bool isImageFormat(self) -> bool [extrait de isImageFormat.__doc__]
isListFormat(self) -> bool isListFormat(self) -> bool [extrait de isListFormat.__doc__]
isTableCellFormat(self) -> bool isTableCellFormat(self) -> bool [extrait de isTableCellFormat.__doc__]
isTableFormat(self) -> bool isTableFormat(self) -> bool [extrait de isTableFormat.__doc__]
isValid(self) -> bool isValid(self) -> bool [extrait de isValid.__doc__]
layoutDirection(self) -> PySide6.QtCore.Qt.LayoutDirection layoutDirection(self) -> PySide6.QtCore.Qt.LayoutDirection [extrait de layoutDirection.__doc__]
lengthProperty(self, propertyId: int) -> PySide6.QtGui.QTextLength lengthProperty(self, propertyId: int) -> PySide6.QtGui.QTextLength [extrait de lengthProperty.__doc__]
lengthVectorProperty(self, propertyId: int) -> List[PySide6.QtGui.QTextLength] lengthVectorProperty(self, propertyId: int) -> List[PySide6.QtGui.QTextLength] [extrait de lengthVectorProperty.__doc__]
merge(self, other: PySide6.QtGui.QTextFormat) -> None merge(self, other: PySide6.QtGui.QTextFormat) -> None [extrait de merge.__doc__]
objectIndex(self) -> int objectIndex(self) -> int [extrait de objectIndex.__doc__]
objectType(self) -> int objectType(self) -> int [extrait de objectType.__doc__]
ObjectTypes
PageBreakFlag
PageBreakFlags
penProperty(self, propertyId: int) -> PySide6.QtGui.QPen penProperty(self, propertyId: int) -> PySide6.QtGui.QPen [extrait de penProperty.__doc__]
properties(self) -> Dict[int, Any] properties(self) -> Dict[int, Any] [extrait de properties.__doc__]
Property
property(self, propertyId: int) -> Any property(self, propertyId: int) -> Any [extrait de property.__doc__]
propertyCount(self) -> int propertyCount(self) -> int [extrait de propertyCount.__doc__]
setBackground(self, brush: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap]) -> None setBackground(self, brush: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap]) -> None [extrait de setBackground.__doc__]
setForeground(self, brush: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap]) -> None setForeground(self, brush: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap]) -> None [extrait de setForeground.__doc__]
setLayoutDirection(self, direction: PySide6.QtCore.Qt.LayoutDirection) -> None setLayoutDirection(self, direction: PySide6.QtCore.Qt.LayoutDirection) -> None [extrait de setLayoutDirection.__doc__]
setObjectIndex(self, object: int) -> None setObjectIndex(self, object: int) -> None [extrait de setObjectIndex.__doc__]
setObjectType(self, type: int) -> None setObjectType(self, type: int) -> None [extrait de setObjectType.__doc__]
setProperty setProperty(self, propertyId: int, lengths: Sequence[PySide6.QtGui.QTextLength]) -> None [extrait de setProperty.__doc__]
stringProperty(self, propertyId: int) -> str stringProperty(self, propertyId: int) -> str [extrait de stringProperty.__doc__]
swap(self, other: PySide6.QtGui.QTextFormat) -> None swap(self, other: PySide6.QtGui.QTextFormat) -> None [extrait de swap.__doc__]
toBlockFormat(self) -> PySide6.QtGui.QTextBlockFormat toBlockFormat(self) -> PySide6.QtGui.QTextBlockFormat [extrait de toBlockFormat.__doc__]
toCharFormat(self) -> PySide6.QtGui.QTextCharFormat toCharFormat(self) -> PySide6.QtGui.QTextCharFormat [extrait de toCharFormat.__doc__]
toFrameFormat(self) -> PySide6.QtGui.QTextFrameFormat toFrameFormat(self) -> PySide6.QtGui.QTextFrameFormat [extrait de toFrameFormat.__doc__]
toImageFormat(self) -> PySide6.QtGui.QTextImageFormat toImageFormat(self) -> PySide6.QtGui.QTextImageFormat [extrait de toImageFormat.__doc__]
toListFormat(self) -> PySide6.QtGui.QTextListFormat toListFormat(self) -> PySide6.QtGui.QTextListFormat [extrait de toListFormat.__doc__]
toTableCellFormat(self) -> PySide6.QtGui.QTextTableCellFormat toTableCellFormat(self) -> PySide6.QtGui.QTextTableCellFormat [extrait de toTableCellFormat.__doc__]
toTableFormat(self) -> PySide6.QtGui.QTextTableFormat toTableFormat(self) -> PySide6.QtGui.QTextTableFormat [extrait de toTableFormat.__doc__]
type(self) -> int type(self) -> int [extrait de type.__doc__]

Méthodes héritées de la classe Object

__delattr__, __getattribute__, __init_subclass__, __setattr__, __subclasshook__

Méthodes héritées de la classe object

__dir__, __format__, __hash__, __reduce__, __reduce_ex__, __sizeof__, __str__