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

Informations générales

Héritage

builtins.object
    Object
        QTextLayout

Définition

class QTextLayout(Object):

Description [extrait de QTextLayout.__doc__]

QTextLayout(self)
QTextLayout(self, b: PySide2.QtGui.QTextBlock)
QTextLayout(self, text: str)
QTextLayout(self, text: str, font: PySide2.QtGui.QFont, paintdevice: typing.Union[PySide2.QtGui.QPaintDevice, NoneType] = 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__]
__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
SkipCharactersPySide2.QtGui.QTextLayout.CursorMode.SkipCharacters
SkipWordsPySide2.QtGui.QTextLayout.CursorMode.SkipWords

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
additionalFormats(self) -> typing.List[PySide2.QtGui.QTextLayout.FormatRange] additionalFormats(self) -> typing.List[PySide2.QtGui.QTextLayout.FormatRange] [extrait de additionalFormats.__doc__]
beginLayout(self) beginLayout(self) [extrait de beginLayout.__doc__]
boundingRect(self) -> PySide2.QtCore.QRectF boundingRect(self) -> PySide2.QtCore.QRectF [extrait de boundingRect.__doc__]
cacheEnabled(self) -> bool cacheEnabled(self) -> bool [extrait de cacheEnabled.__doc__]
clearAdditionalFormats(self) clearAdditionalFormats(self) [extrait de clearAdditionalFormats.__doc__]
clearFormats(self) clearFormats(self) [extrait de clearFormats.__doc__]
clearLayout(self) clearLayout(self) [extrait de clearLayout.__doc__]
createLine(self) -> PySide2.QtGui.QTextLine createLine(self) -> PySide2.QtGui.QTextLine [extrait de createLine.__doc__]
CursorMode
cursorMoveStyle(self) -> PySide2.QtCore.Qt.CursorMoveStyle cursorMoveStyle(self) -> PySide2.QtCore.Qt.CursorMoveStyle [extrait de cursorMoveStyle.__doc__]
draw(self, p: PySide2.QtGui.QPainter, pos: PySide2.QtCore.QPointF, selections: typing.List[PySide2.QtGui.QTextLayout.FormatRange] = [], clip: PySide2.QtCore.QRectF = Default(QRectF)) draw(self, p: PySide2.QtGui.QPainter, pos: PySide2.QtCore.QPointF, selections: typing.List[PySide2.QtGui.QTextLayout.FormatRange] = [], clip: PySide2.QtCore.QRectF = Default(QRectF)) [extrait de draw.__doc__]
drawCursor drawCursor(self, p: PySide2.QtGui.QPainter, pos: PySide2.QtCore.QPointF, cursorPosition: int) [extrait de drawCursor.__doc__]
endLayout(self) endLayout(self) [extrait de endLayout.__doc__]
font(self) -> PySide2.QtGui.QFont font(self) -> PySide2.QtGui.QFont [extrait de font.__doc__]
FormatRange FormatRange(self) [extrait de FormatRange.__doc__]
formats(self) -> typing.List[PySide2.QtGui.QTextLayout.FormatRange] formats(self) -> typing.List[PySide2.QtGui.QTextLayout.FormatRange] [extrait de formats.__doc__]
isValidCursorPosition(self, pos: int) -> bool isValidCursorPosition(self, pos: int) -> bool [extrait de isValidCursorPosition.__doc__]
leftCursorPosition(self, oldPos: int) -> int leftCursorPosition(self, oldPos: int) -> int [extrait de leftCursorPosition.__doc__]
lineAt(self, i: int) -> PySide2.QtGui.QTextLine lineAt(self, i: int) -> PySide2.QtGui.QTextLine [extrait de lineAt.__doc__]
lineCount(self) -> int lineCount(self) -> int [extrait de lineCount.__doc__]
lineForTextPosition(self, pos: int) -> PySide2.QtGui.QTextLine lineForTextPosition(self, pos: int) -> PySide2.QtGui.QTextLine [extrait de lineForTextPosition.__doc__]
maximumWidth(self) -> float maximumWidth(self) -> float [extrait de maximumWidth.__doc__]
minimumWidth(self) -> float minimumWidth(self) -> float [extrait de minimumWidth.__doc__]
nextCursorPosition(self, oldPos: int, mode: PySide2.QtGui.QTextLayout.CursorMode = PySide2.QtGui.QTextLayout.CursorMode.SkipCharacters) -> int nextCursorPosition(self, oldPos: int, mode: PySide2.QtGui.QTextLayout.CursorMode = PySide2.QtGui.QTextLayout.CursorMode.SkipCharacters) -> int [extrait de nextCursorPosition.__doc__]
position(self) -> PySide2.QtCore.QPointF position(self) -> PySide2.QtCore.QPointF [extrait de position.__doc__]
preeditAreaPosition(self) -> int preeditAreaPosition(self) -> int [extrait de preeditAreaPosition.__doc__]
preeditAreaText(self) -> str preeditAreaText(self) -> str [extrait de preeditAreaText.__doc__]
previousCursorPosition(self, oldPos: int, mode: PySide2.QtGui.QTextLayout.CursorMode = PySide2.QtGui.QTextLayout.CursorMode.SkipCharacters) -> int previousCursorPosition(self, oldPos: int, mode: PySide2.QtGui.QTextLayout.CursorMode = PySide2.QtGui.QTextLayout.CursorMode.SkipCharacters) -> int [extrait de previousCursorPosition.__doc__]
rightCursorPosition(self, oldPos: int) -> int rightCursorPosition(self, oldPos: int) -> int [extrait de rightCursorPosition.__doc__]
setAdditionalFormats(self, overrides: typing.Sequence[PySide2.QtGui.QTextLayout.FormatRange]) setAdditionalFormats(self, overrides: typing.Sequence[PySide2.QtGui.QTextLayout.FormatRange]) [extrait de setAdditionalFormats.__doc__]
setCacheEnabled(self, enable: bool) setCacheEnabled(self, enable: bool) [extrait de setCacheEnabled.__doc__]
setCursorMoveStyle(self, style: PySide2.QtCore.Qt.CursorMoveStyle) setCursorMoveStyle(self, style: PySide2.QtCore.Qt.CursorMoveStyle) [extrait de setCursorMoveStyle.__doc__]
setFlags(self, flags: int) setFlags(self, flags: int) [extrait de setFlags.__doc__]
setFont(self, f: PySide2.QtGui.QFont) setFont(self, f: PySide2.QtGui.QFont) [extrait de setFont.__doc__]
setFormats(self, overrides: typing.List[PySide2.QtGui.QTextLayout.FormatRange]) setFormats(self, overrides: typing.List[PySide2.QtGui.QTextLayout.FormatRange]) [extrait de setFormats.__doc__]
setPosition(self, p: PySide2.QtCore.QPointF) setPosition(self, p: PySide2.QtCore.QPointF) [extrait de setPosition.__doc__]
setPreeditArea(self, position: int, text: str) setPreeditArea(self, position: int, text: str) [extrait de setPreeditArea.__doc__]
setRawFont(self, rawFont: PySide2.QtGui.QRawFont) setRawFont(self, rawFont: PySide2.QtGui.QRawFont) [extrait de setRawFont.__doc__]
setText(self, string: str) setText(self, string: str) [extrait de setText.__doc__]
setTextOption(self, option: PySide2.QtGui.QTextOption) setTextOption(self, option: PySide2.QtGui.QTextOption) [extrait de setTextOption.__doc__]
text(self) -> str text(self) -> str [extrait de text.__doc__]
textOption(self) -> PySide2.QtGui.QTextOption textOption(self) -> PySide2.QtGui.QTextOption [extrait de textOption.__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__, __repr__, __setattr__, __sizeof__, __str__