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 « PySide2.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)
QTextFormat(self, rhs: PySide2.QtGui.QTextFormat)
QTextFormat(self, type: int)

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__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
AnchorHrefPySide2.QtGui.QTextFormat.Property.AnchorHref
AnchorNamePySide2.QtGui.QTextFormat.Property.AnchorName
BackgroundBrushPySide2.QtGui.QTextFormat.Property.BackgroundBrush
BackgroundImageUrlPySide2.QtGui.QTextFormat.Property.BackgroundImageUrl
BlockAlignmentPySide2.QtGui.QTextFormat.Property.BlockAlignment
BlockBottomMarginPySide2.QtGui.QTextFormat.Property.BlockBottomMargin
BlockCodeFencePySide2.QtGui.QTextFormat.Property.BlockCodeFence
BlockCodeLanguagePySide2.QtGui.QTextFormat.Property.BlockCodeLanguage
BlockFormatPySide2.QtGui.QTextFormat.FormatType.BlockFormat
BlockIndentPySide2.QtGui.QTextFormat.Property.BlockIndent
BlockLeftMarginPySide2.QtGui.QTextFormat.Property.BlockLeftMargin
BlockMarkerPySide2.QtGui.QTextFormat.Property.BlockMarker
BlockNonBreakableLinesPySide2.QtGui.QTextFormat.Property.BlockNonBreakableLines
BlockQuoteLevelPySide2.QtGui.QTextFormat.Property.BlockQuoteLevel
BlockRightMarginPySide2.QtGui.QTextFormat.Property.BlockRightMargin
BlockTopMarginPySide2.QtGui.QTextFormat.Property.BlockTopMargin
BlockTrailingHorizontalRulerWidthPySide2.QtGui.QTextFormat.Property.BlockTrailingHorizontalRulerWidth
CharFormatPySide2.QtGui.QTextFormat.FormatType.CharFormat
CssFloatPySide2.QtGui.QTextFormat.Property.CssFloat
FirstFontPropertyPySide2.QtGui.QTextFormat.Property.FirstFontProperty
FontCapitalizationPySide2.QtGui.QTextFormat.Property.FontCapitalization
FontFamiliesPySide2.QtGui.QTextFormat.Property.FontFamilies
FontFamilyPySide2.QtGui.QTextFormat.Property.FontFamily
FontFixedPitchPySide2.QtGui.QTextFormat.Property.FontFixedPitch
FontHintingPreferencePySide2.QtGui.QTextFormat.Property.FontHintingPreference
FontItalicPySide2.QtGui.QTextFormat.Property.FontItalic
FontKerningPySide2.QtGui.QTextFormat.Property.FontKerning
FontLetterSpacingPySide2.QtGui.QTextFormat.Property.FontLetterSpacing
FontLetterSpacingTypePySide2.QtGui.QTextFormat.Property.FontLetterSpacingType
FontOverlinePySide2.QtGui.QTextFormat.Property.FontOverline
FontPixelSizePySide2.QtGui.QTextFormat.Property.FontPixelSize
FontPointSizePySide2.QtGui.QTextFormat.Property.FontPointSize
FontSizeAdjustmentPySide2.QtGui.QTextFormat.Property.FontSizeAdjustment
FontSizeIncrementPySide2.QtGui.QTextFormat.Property.FontSizeIncrement
FontStretchPySide2.QtGui.QTextFormat.Property.FontStretch
FontStrikeOutPySide2.QtGui.QTextFormat.Property.FontStrikeOut
FontStyleHintPySide2.QtGui.QTextFormat.Property.FontStyleHint
FontStyleNamePySide2.QtGui.QTextFormat.Property.FontStyleName
FontStyleStrategyPySide2.QtGui.QTextFormat.Property.FontStyleStrategy
FontUnderlinePySide2.QtGui.QTextFormat.Property.FontUnderline
FontWeightPySide2.QtGui.QTextFormat.Property.FontWeight
FontWordSpacingPySide2.QtGui.QTextFormat.Property.FontWordSpacing
ForegroundBrushPySide2.QtGui.QTextFormat.Property.ForegroundBrush
FrameBorderPySide2.QtGui.QTextFormat.Property.FrameBorder
FrameBorderBrushPySide2.QtGui.QTextFormat.Property.FrameBorderBrush
FrameBorderStylePySide2.QtGui.QTextFormat.Property.FrameBorderStyle
FrameBottomMarginPySide2.QtGui.QTextFormat.Property.FrameBottomMargin
FrameFormatPySide2.QtGui.QTextFormat.FormatType.FrameFormat
FrameHeightPySide2.QtGui.QTextFormat.Property.FrameHeight
FrameLeftMarginPySide2.QtGui.QTextFormat.Property.FrameLeftMargin
FrameMarginPySide2.QtGui.QTextFormat.Property.FrameMargin
FramePaddingPySide2.QtGui.QTextFormat.Property.FramePadding
FrameRightMarginPySide2.QtGui.QTextFormat.Property.FrameRightMargin
FrameTopMarginPySide2.QtGui.QTextFormat.Property.FrameTopMargin
FrameWidthPySide2.QtGui.QTextFormat.Property.FrameWidth
FullWidthSelectionPySide2.QtGui.QTextFormat.Property.FullWidthSelection
HeadingLevelPySide2.QtGui.QTextFormat.Property.HeadingLevel
ImageAltTextPySide2.QtGui.QTextFormat.Property.ImageAltText
ImageHeightPySide2.QtGui.QTextFormat.Property.ImageHeight
ImageNamePySide2.QtGui.QTextFormat.Property.ImageName
ImageObjectPySide2.QtGui.QTextFormat.ObjectTypes.ImageObject
ImageQualityPySide2.QtGui.QTextFormat.Property.ImageQuality
ImageTitlePySide2.QtGui.QTextFormat.Property.ImageTitle
ImageWidthPySide2.QtGui.QTextFormat.Property.ImageWidth
InvalidFormatPySide2.QtGui.QTextFormat.FormatType.InvalidFormat
IsAnchorPySide2.QtGui.QTextFormat.Property.IsAnchor
LastFontPropertyPySide2.QtGui.QTextFormat.Property.LastFontProperty
LayoutDirectionPySide2.QtGui.QTextFormat.Property.LayoutDirection
LineHeightPySide2.QtGui.QTextFormat.Property.LineHeight
LineHeightTypePySide2.QtGui.QTextFormat.Property.LineHeightType
ListFormatPySide2.QtGui.QTextFormat.FormatType.ListFormat
ListIndentPySide2.QtGui.QTextFormat.Property.ListIndent
ListNumberPrefixPySide2.QtGui.QTextFormat.Property.ListNumberPrefix
ListNumberSuffixPySide2.QtGui.QTextFormat.Property.ListNumberSuffix
ListStylePySide2.QtGui.QTextFormat.Property.ListStyle
NoObjectPySide2.QtGui.QTextFormat.ObjectTypes.NoObject
ObjectIndexPySide2.QtGui.QTextFormat.Property.ObjectIndex
ObjectTypePySide2.QtGui.QTextFormat.Property.ObjectType
OutlinePenPySide2.QtGui.QTextFormat.Property.OutlinePen
PageBreak_AlwaysAfterPySide2.QtGui.QTextFormat.PageBreakFlag.PageBreak_AlwaysAfter
PageBreak_AlwaysBeforePySide2.QtGui.QTextFormat.PageBreakFlag.PageBreak_AlwaysBefore
PageBreak_AutoPySide2.QtGui.QTextFormat.PageBreakFlag.PageBreak_Auto
PageBreakPolicyPySide2.QtGui.QTextFormat.Property.PageBreakPolicy
TableBorderCollapsePySide2.QtGui.QTextFormat.Property.TableBorderCollapse
TableCellBottomBorderPySide2.QtGui.QTextFormat.Property.TableCellBottomBorder
TableCellBottomBorderBrushPySide2.QtGui.QTextFormat.Property.TableCellBottomBorderBrush
TableCellBottomBorderStylePySide2.QtGui.QTextFormat.Property.TableCellBottomBorderStyle
TableCellBottomPaddingPySide2.QtGui.QTextFormat.Property.TableCellBottomPadding
TableCellColumnSpanPySide2.QtGui.QTextFormat.Property.TableCellColumnSpan
TableCellLeftBorderPySide2.QtGui.QTextFormat.Property.TableCellLeftBorder
TableCellLeftBorderBrushPySide2.QtGui.QTextFormat.Property.TableCellLeftBorderBrush
TableCellLeftBorderStylePySide2.QtGui.QTextFormat.Property.TableCellLeftBorderStyle
TableCellLeftPaddingPySide2.QtGui.QTextFormat.Property.TableCellLeftPadding
TableCellObjectPySide2.QtGui.QTextFormat.ObjectTypes.TableCellObject
TableCellPaddingPySide2.QtGui.QTextFormat.Property.TableCellPadding
TableCellRightBorderPySide2.QtGui.QTextFormat.Property.TableCellRightBorder
TableCellRightBorderBrushPySide2.QtGui.QTextFormat.Property.TableCellRightBorderBrush
TableCellRightBorderStylePySide2.QtGui.QTextFormat.Property.TableCellRightBorderStyle
TableCellRightPaddingPySide2.QtGui.QTextFormat.Property.TableCellRightPadding
TableCellRowSpanPySide2.QtGui.QTextFormat.Property.TableCellRowSpan
TableCellSpacingPySide2.QtGui.QTextFormat.Property.TableCellSpacing
TableCellTopBorderPySide2.QtGui.QTextFormat.Property.TableCellTopBorder
TableCellTopBorderBrushPySide2.QtGui.QTextFormat.Property.TableCellTopBorderBrush
TableCellTopBorderStylePySide2.QtGui.QTextFormat.Property.TableCellTopBorderStyle
TableCellTopPaddingPySide2.QtGui.QTextFormat.Property.TableCellTopPadding
TableColumnsPySide2.QtGui.QTextFormat.Property.TableColumns
TableColumnWidthConstraintsPySide2.QtGui.QTextFormat.Property.TableColumnWidthConstraints
TableFormatPySide2.QtGui.QTextFormat.FormatType.TableFormat
TableHeaderRowCountPySide2.QtGui.QTextFormat.Property.TableHeaderRowCount
TableObjectPySide2.QtGui.QTextFormat.ObjectTypes.TableObject
TabPositionsPySide2.QtGui.QTextFormat.Property.TabPositions
TextIndentPySide2.QtGui.QTextFormat.Property.TextIndent
TextOutlinePySide2.QtGui.QTextFormat.Property.TextOutline
TextToolTipPySide2.QtGui.QTextFormat.Property.TextToolTip
TextUnderlineColorPySide2.QtGui.QTextFormat.Property.TextUnderlineColor
TextUnderlineStylePySide2.QtGui.QTextFormat.Property.TextUnderlineStyle
TextVerticalAlignmentPySide2.QtGui.QTextFormat.Property.TextVerticalAlignment
UserFormatPySide2.QtGui.QTextFormat.FormatType.UserFormat
UserObjectPySide2.QtGui.QTextFormat.ObjectTypes.UserObject
UserPropertyPySide2.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: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream __lshift__(self, arg__1: PySide2.QtCore.QDataStream) -> PySide2.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: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream __rshift__(self, arg__1: PySide2.QtCore.QDataStream) -> PySide2.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__(self) __copy__(self) [extrait de __copy__.__doc__]
__repr__(self) Return repr(self). [extrait de __repr__.__doc__]
background(self) -> PySide2.QtGui.QBrush background(self) -> PySide2.QtGui.QBrush [extrait de background.__doc__]
boolProperty(self, propertyId: int) -> bool boolProperty(self, propertyId: int) -> bool [extrait de boolProperty.__doc__]
brushProperty(self, propertyId: int) -> PySide2.QtGui.QBrush brushProperty(self, propertyId: int) -> PySide2.QtGui.QBrush [extrait de brushProperty.__doc__]
clearBackground(self) clearBackground(self) [extrait de clearBackground.__doc__]
clearForeground(self) clearForeground(self) [extrait de clearForeground.__doc__]
clearProperty(self, propertyId: int) clearProperty(self, propertyId: int) [extrait de clearProperty.__doc__]
colorProperty(self, propertyId: int) -> PySide2.QtGui.QColor colorProperty(self, propertyId: int) -> PySide2.QtGui.QColor [extrait de colorProperty.__doc__]
doubleProperty(self, propertyId: int) -> float doubleProperty(self, propertyId: int) -> float [extrait de doubleProperty.__doc__]
foreground(self) -> PySide2.QtGui.QBrush foreground(self) -> PySide2.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) -> PySide2.QtCore.Qt.LayoutDirection layoutDirection(self) -> PySide2.QtCore.Qt.LayoutDirection [extrait de layoutDirection.__doc__]
lengthProperty(self, propertyId: int) -> PySide2.QtGui.QTextLength lengthProperty(self, propertyId: int) -> PySide2.QtGui.QTextLength [extrait de lengthProperty.__doc__]
lengthVectorProperty(self, propertyId: int) -> typing.List[PySide2.QtGui.QTextLength] lengthVectorProperty(self, propertyId: int) -> typing.List[PySide2.QtGui.QTextLength] [extrait de lengthVectorProperty.__doc__]
merge(self, other: PySide2.QtGui.QTextFormat) merge(self, other: PySide2.QtGui.QTextFormat) [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) -> PySide2.QtGui.QPen penProperty(self, propertyId: int) -> PySide2.QtGui.QPen [extrait de penProperty.__doc__]
properties(self) -> typing.Dict[int, typing.Any] properties(self) -> typing.Dict[int, typing.Any] [extrait de properties.__doc__]
Property
property(self, propertyId: int) -> typing.Any property(self, propertyId: int) -> typing.Any [extrait de property.__doc__]
propertyCount(self) -> int propertyCount(self) -> int [extrait de propertyCount.__doc__]
setBackground(self, brush: PySide2.QtGui.QBrush) setBackground(self, brush: PySide2.QtGui.QBrush) [extrait de setBackground.__doc__]
setForeground(self, brush: PySide2.QtGui.QBrush) setForeground(self, brush: PySide2.QtGui.QBrush) [extrait de setForeground.__doc__]
setLayoutDirection(self, direction: PySide2.QtCore.Qt.LayoutDirection) setLayoutDirection(self, direction: PySide2.QtCore.Qt.LayoutDirection) [extrait de setLayoutDirection.__doc__]
setObjectIndex(self, object: int) setObjectIndex(self, object: int) [extrait de setObjectIndex.__doc__]
setObjectType(self, type: int) setObjectType(self, type: int) [extrait de setObjectType.__doc__]
setProperty setProperty(self, propertyId: int, lengths: typing.List[PySide2.QtGui.QTextLength]) [extrait de setProperty.__doc__]
stringProperty(self, propertyId: int) -> str stringProperty(self, propertyId: int) -> str [extrait de stringProperty.__doc__]
swap(self, other: PySide2.QtGui.QTextFormat) swap(self, other: PySide2.QtGui.QTextFormat) [extrait de swap.__doc__]
toBlockFormat(self) -> PySide2.QtGui.QTextBlockFormat toBlockFormat(self) -> PySide2.QtGui.QTextBlockFormat [extrait de toBlockFormat.__doc__]
toCharFormat(self) -> PySide2.QtGui.QTextCharFormat toCharFormat(self) -> PySide2.QtGui.QTextCharFormat [extrait de toCharFormat.__doc__]
toFrameFormat(self) -> PySide2.QtGui.QTextFrameFormat toFrameFormat(self) -> PySide2.QtGui.QTextFrameFormat [extrait de toFrameFormat.__doc__]
toImageFormat(self) -> PySide2.QtGui.QTextImageFormat toImageFormat(self) -> PySide2.QtGui.QTextImageFormat [extrait de toImageFormat.__doc__]
toListFormat(self) -> PySide2.QtGui.QTextListFormat toListFormat(self) -> PySide2.QtGui.QTextListFormat [extrait de toListFormat.__doc__]
toTableCellFormat(self) -> PySide2.QtGui.QTextTableCellFormat toTableCellFormat(self) -> PySide2.QtGui.QTextTableCellFormat [extrait de toTableCellFormat.__doc__]
toTableFormat(self) -> PySide2.QtGui.QTextTableFormat toTableFormat(self) -> PySide2.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

__init_subclass__, __subclasshook__

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

__delattr__, __dir__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__