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 « QTextBlockFormat »

Informations générales

Héritage

builtins.object
    Object
        QTextFormat
            QTextBlockFormat

Définition

class QTextBlockFormat(QTextFormat):

Description [extrait de QTextBlockFormat.__doc__]

QTextBlockFormat(self)
QTextBlockFormat(self, QTextBlockFormat: PySide2.QtGui.QTextBlockFormat)
QTextBlockFormat(self, fmt: PySide2.QtGui.QTextFormat)

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
FixedHeightPySide2.QtGui.QTextBlockFormat.LineHeightTypes.FixedHeight
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
LineDistanceHeightPySide2.QtGui.QTextBlockFormat.LineHeightTypes.LineDistanceHeight
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
MinimumHeightPySide2.QtGui.QTextBlockFormat.LineHeightTypes.MinimumHeight
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
ProportionalHeightPySide2.QtGui.QTextBlockFormat.LineHeightTypes.ProportionalHeight
SingleHeightPySide2.QtGui.QTextBlockFormat.LineHeightTypes.SingleHeight
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

Opérateurs hérités de la classe QTextFormat

__eq__, __ge__, __gt__, __le__, __lshift__, __lt__, __ne__, __rlshift__, __rrshift__, __rshift__

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

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__]
alignment(self) -> PySide2.QtCore.Qt.Alignment alignment(self) -> PySide2.QtCore.Qt.Alignment [extrait de alignment.__doc__]
bottomMargin(self) -> float bottomMargin(self) -> float [extrait de bottomMargin.__doc__]
headingLevel(self) -> int headingLevel(self) -> int [extrait de headingLevel.__doc__]
indent(self) -> int indent(self) -> int [extrait de indent.__doc__]
isValid(self) -> bool isValid(self) -> bool [extrait de isValid.__doc__]
leftMargin(self) -> float leftMargin(self) -> float [extrait de leftMargin.__doc__]
lineHeight lineHeight(self) -> float [extrait de lineHeight.__doc__]
lineHeightType(self) -> int lineHeightType(self) -> int [extrait de lineHeightType.__doc__]
LineHeightTypes
marker(self) -> PySide2.QtGui.QTextBlockFormat.MarkerType marker(self) -> PySide2.QtGui.QTextBlockFormat.MarkerType [extrait de marker.__doc__]
MarkerType
nonBreakableLines(self) -> bool nonBreakableLines(self) -> bool [extrait de nonBreakableLines.__doc__]
pageBreakPolicy(self) -> PySide2.QtGui.QTextFormat.PageBreakFlags pageBreakPolicy(self) -> PySide2.QtGui.QTextFormat.PageBreakFlags [extrait de pageBreakPolicy.__doc__]
rightMargin(self) -> float rightMargin(self) -> float [extrait de rightMargin.__doc__]
setAlignment(self, alignment: PySide2.QtCore.Qt.Alignment) setAlignment(self, alignment: PySide2.QtCore.Qt.Alignment) [extrait de setAlignment.__doc__]
setBottomMargin(self, margin: float) setBottomMargin(self, margin: float) [extrait de setBottomMargin.__doc__]
setHeadingLevel(self, alevel: int) setHeadingLevel(self, alevel: int) [extrait de setHeadingLevel.__doc__]
setIndent(self, indent: int) setIndent(self, indent: int) [extrait de setIndent.__doc__]
setLeftMargin(self, margin: float) setLeftMargin(self, margin: float) [extrait de setLeftMargin.__doc__]
setLineHeight(self, height: float, heightType: int) setLineHeight(self, height: float, heightType: int) [extrait de setLineHeight.__doc__]
setMarker(self, marker: PySide2.QtGui.QTextBlockFormat.MarkerType) setMarker(self, marker: PySide2.QtGui.QTextBlockFormat.MarkerType) [extrait de setMarker.__doc__]
setNonBreakableLines(self, b: bool) setNonBreakableLines(self, b: bool) [extrait de setNonBreakableLines.__doc__]
setPageBreakPolicy(self, flags: PySide2.QtGui.QTextFormat.PageBreakFlags) setPageBreakPolicy(self, flags: PySide2.QtGui.QTextFormat.PageBreakFlags) [extrait de setPageBreakPolicy.__doc__]
setRightMargin(self, margin: float) setRightMargin(self, margin: float) [extrait de setRightMargin.__doc__]
setTabPositions(self, tabs: typing.Sequence[PySide2.QtGui.QTextOption.Tab]) setTabPositions(self, tabs: typing.Sequence[PySide2.QtGui.QTextOption.Tab]) [extrait de setTabPositions.__doc__]
setTextIndent(self, aindent: float) setTextIndent(self, aindent: float) [extrait de setTextIndent.__doc__]
setTopMargin(self, margin: float) setTopMargin(self, margin: float) [extrait de setTopMargin.__doc__]
tabPositions(self) -> typing.List[PySide2.QtGui.QTextOption.Tab] tabPositions(self) -> typing.List[PySide2.QtGui.QTextOption.Tab] [extrait de tabPositions.__doc__]
textIndent(self) -> float textIndent(self) -> float [extrait de textIndent.__doc__]
topMargin(self) -> float topMargin(self) -> float [extrait de topMargin.__doc__]

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

__init_subclass__, __repr__, __subclasshook__, background, boolProperty, brushProperty, clearBackground, clearForeground, clearProperty, colorProperty, doubleProperty, foreground, FormatType, hasProperty, intProperty, isBlockFormat, isCharFormat, isEmpty, isFrameFormat, isImageFormat, isListFormat, isTableCellFormat, isTableFormat, layoutDirection, lengthProperty, lengthVectorProperty, merge, objectIndex, objectType, ObjectTypes, PageBreakFlag, PageBreakFlags, penProperty, properties, Property, property, propertyCount, setBackground, setForeground, setLayoutDirection, setObjectIndex, setObjectType, setProperty, stringProperty, swap, toBlockFormat, toCharFormat, toFrameFormat, toImageFormat, toListFormat, toTableCellFormat, toTableFormat, type

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__, __repr__, __setattr__, __sizeof__, __str__