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

Informations générales

Héritage

builtins.object
    Object
        QTextLayout

Définition

class QTextLayout(Object):

Description [extrait de QTextLayout.__doc__]

QTextLayout(self) -> None
QTextLayout(self, b: PySide6.QtGui.QTextBlock) -> None
QTextLayout(self, text: str) -> None
QTextLayout(self, text: str, font: Union[PySide6.QtGui.QFont, str, Sequence[str]], paintdevice: Optional[PySide6.QtGui.QPaintDevice] = None) -> 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
SkipCharactersPySide6.QtGui.QTextLayout.CursorMode.SkipCharacters
SkipWordsPySide6.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
beginLayout(self) -> None beginLayout(self) -> None [extrait de beginLayout.__doc__]
boundingRect(self) -> PySide6.QtCore.QRectF boundingRect(self) -> PySide6.QtCore.QRectF [extrait de boundingRect.__doc__]
cacheEnabled(self) -> bool cacheEnabled(self) -> bool [extrait de cacheEnabled.__doc__]
clearFormats(self) -> None clearFormats(self) -> None [extrait de clearFormats.__doc__]
clearLayout(self) -> None clearLayout(self) -> None [extrait de clearLayout.__doc__]
createLine(self) -> PySide6.QtGui.QTextLine createLine(self) -> PySide6.QtGui.QTextLine [extrait de createLine.__doc__]
CursorMode
cursorMoveStyle(self) -> PySide6.QtCore.Qt.CursorMoveStyle cursorMoveStyle(self) -> PySide6.QtCore.Qt.CursorMoveStyle [extrait de cursorMoveStyle.__doc__]
draw(self, p: PySide6.QtGui.QPainter, pos: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element], selections: Sequence[PySide6.QtGui.QTextLayout.FormatRange] = Default(QList< QTextLayout.FormatRange >), clip: Union[PySide6.QtCore.QRectF, PySide6.QtCore.QRect] = Default(QRectF)) -> None draw(self, p: PySide6.QtGui.QPainter, pos: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element], selections: Sequence[PySide6.QtGui.QTextLayout.FormatRange] = Default(QList< QTextLayout.FormatRange >), clip: Union[PySide6.QtCore.QRectF, PySide6.QtCore.QRect] = Default(QRectF)) -> None [extrait de draw.__doc__]
drawCursor drawCursor(self, p: PySide6.QtGui.QPainter, pos: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element], cursorPosition: int) -> None [extrait de drawCursor.__doc__]
endLayout(self) -> None endLayout(self) -> None [extrait de endLayout.__doc__]
font(self) -> PySide6.QtGui.QFont font(self) -> PySide6.QtGui.QFont [extrait de font.__doc__]
FormatRange FormatRange(self) -> None [extrait de FormatRange.__doc__]
formats(self) -> List[PySide6.QtGui.QTextLayout.FormatRange] formats(self) -> List[PySide6.QtGui.QTextLayout.FormatRange] [extrait de formats.__doc__]
glyphRuns(self, from_: int = -1, length: int = -1) -> List[PySide6.QtGui.QGlyphRun] glyphRuns(self, from_: int = -1, length: int = -1) -> List[PySide6.QtGui.QGlyphRun] [extrait de glyphRuns.__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) -> PySide6.QtGui.QTextLine lineAt(self, i: int) -> PySide6.QtGui.QTextLine [extrait de lineAt.__doc__]
lineCount(self) -> int lineCount(self) -> int [extrait de lineCount.__doc__]
lineForTextPosition(self, pos: int) -> PySide6.QtGui.QTextLine lineForTextPosition(self, pos: int) -> PySide6.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: PySide6.QtGui.QTextLayout.CursorMode = PySide6.QtGui.QTextLayout.CursorMode.SkipCharacters) -> int nextCursorPosition(self, oldPos: int, mode: PySide6.QtGui.QTextLayout.CursorMode = PySide6.QtGui.QTextLayout.CursorMode.SkipCharacters) -> int [extrait de nextCursorPosition.__doc__]
position(self) -> PySide6.QtCore.QPointF position(self) -> PySide6.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: PySide6.QtGui.QTextLayout.CursorMode = PySide6.QtGui.QTextLayout.CursorMode.SkipCharacters) -> int previousCursorPosition(self, oldPos: int, mode: PySide6.QtGui.QTextLayout.CursorMode = PySide6.QtGui.QTextLayout.CursorMode.SkipCharacters) -> int [extrait de previousCursorPosition.__doc__]
rightCursorPosition(self, oldPos: int) -> int rightCursorPosition(self, oldPos: int) -> int [extrait de rightCursorPosition.__doc__]
setCacheEnabled(self, enable: bool) -> None setCacheEnabled(self, enable: bool) -> None [extrait de setCacheEnabled.__doc__]
setCursorMoveStyle(self, style: PySide6.QtCore.Qt.CursorMoveStyle) -> None setCursorMoveStyle(self, style: PySide6.QtCore.Qt.CursorMoveStyle) -> None [extrait de setCursorMoveStyle.__doc__]
setFlags(self, flags: int) -> None setFlags(self, flags: int) -> None [extrait de setFlags.__doc__]
setFont(self, f: Union[PySide6.QtGui.QFont, str, Sequence[str]]) -> None setFont(self, f: Union[PySide6.QtGui.QFont, str, Sequence[str]]) -> None [extrait de setFont.__doc__]
setFormats(self, overrides: Sequence[PySide6.QtGui.QTextLayout.FormatRange]) -> None setFormats(self, overrides: Sequence[PySide6.QtGui.QTextLayout.FormatRange]) -> None [extrait de setFormats.__doc__]
setPosition(self, p: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element]) -> None setPosition(self, p: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element]) -> None [extrait de setPosition.__doc__]
setPreeditArea(self, position: int, text: str) -> None setPreeditArea(self, position: int, text: str) -> None [extrait de setPreeditArea.__doc__]
setRawFont(self, rawFont: PySide6.QtGui.QRawFont) -> None setRawFont(self, rawFont: PySide6.QtGui.QRawFont) -> None [extrait de setRawFont.__doc__]
setText(self, string: str) -> None setText(self, string: str) -> None [extrait de setText.__doc__]
setTextOption(self, option: Union[PySide6.QtGui.QTextOption, PySide6.QtCore.Qt.Alignment]) -> None setTextOption(self, option: Union[PySide6.QtGui.QTextOption, PySide6.QtCore.Qt.Alignment]) -> None [extrait de setTextOption.__doc__]
text(self) -> str text(self) -> str [extrait de text.__doc__]
textOption(self) -> PySide6.QtGui.QTextOption textOption(self) -> PySide6.QtGui.QTextOption [extrait de textOption.__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__, __repr__, __sizeof__, __str__