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

Informations générales

Héritage

builtins.object
    Object
        QObject
            QTextDocument

Définition

class QTextDocument(QObject):

Description [extrait de QTextDocument.__doc__]

QTextDocument(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None
QTextDocument(self, text: str, parent: Optional[PySide6.QtCore.QObject] = 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
DocumentTitlePySide6.QtGui.QTextDocument.MetaInformation.DocumentTitle
DocumentUrlPySide6.QtGui.QTextDocument.MetaInformation.DocumentUrl
FindBackwardPySide6.QtGui.QTextDocument.FindFlag.FindBackward
FindCaseSensitivelyPySide6.QtGui.QTextDocument.FindFlag.FindCaseSensitively
FindWholeWordsPySide6.QtGui.QTextDocument.FindFlag.FindWholeWords
HtmlResourcePySide6.QtGui.QTextDocument.ResourceType.HtmlResource
ImageResourcePySide6.QtGui.QTextDocument.ResourceType.ImageResource
MarkdownDialectCommonMarkPySide6.QtGui.QTextDocument.MarkdownFeature.MarkdownDialectCommonMark
MarkdownDialectGitHubPySide6.QtGui.QTextDocument.MarkdownFeature.MarkdownDialectGitHub
MarkdownNoHTMLPySide6.QtGui.QTextDocument.MarkdownFeature.MarkdownNoHTML
MarkdownResourcePySide6.QtGui.QTextDocument.ResourceType.MarkdownResource
RedoStackPySide6.QtGui.QTextDocument.Stacks.RedoStack
staticMetaObject<PySide6.QtCore.QMetaObject object at 0x7f40e25fe5c0>
StyleSheetResourcePySide6.QtGui.QTextDocument.ResourceType.StyleSheetResource
UndoAndRedoStacksPySide6.QtGui.QTextDocument.Stacks.UndoAndRedoStacks
UndoStackPySide6.QtGui.QTextDocument.Stacks.UndoStack
UnknownResourcePySide6.QtGui.QTextDocument.ResourceType.UnknownResource
UserResourcePySide6.QtGui.QTextDocument.ResourceType.UserResource

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
__delattr__(self, name) Implement delattr(self, name). [extrait de __delattr__.__doc__]
__setattr__(self, name, value) Implement setattr(self, name, value). [extrait de __setattr__.__doc__]
addResource(self, type: int, name: Union[PySide6.QtCore.QUrl, str], resource: Any) -> None addResource(self, type: int, name: Union[PySide6.QtCore.QUrl, str], resource: Any) -> None [extrait de addResource.__doc__]
adjustSize(self) -> None adjustSize(self) -> None [extrait de adjustSize.__doc__]
allFormats(self) -> List[PySide6.QtGui.QTextFormat] allFormats(self) -> List[PySide6.QtGui.QTextFormat] [extrait de allFormats.__doc__]
availableRedoSteps(self) -> int availableRedoSteps(self) -> int [extrait de availableRedoSteps.__doc__]
availableUndoSteps(self) -> int availableUndoSteps(self) -> int [extrait de availableUndoSteps.__doc__]
baselineOffset(self) -> float baselineOffset(self) -> float [extrait de baselineOffset.__doc__]
baseUrl(self) -> PySide6.QtCore.QUrl baseUrl(self) -> PySide6.QtCore.QUrl [extrait de baseUrl.__doc__]
baseUrlChanged
begin(self) -> PySide6.QtGui.QTextBlock begin(self) -> PySide6.QtGui.QTextBlock [extrait de begin.__doc__]
blockCount(self) -> int blockCount(self) -> int [extrait de blockCount.__doc__]
blockCountChanged
characterAt(self, pos: int) -> str characterAt(self, pos: int) -> str [extrait de characterAt.__doc__]
characterCount(self) -> int characterCount(self) -> int [extrait de characterCount.__doc__]
clear(self) -> None clear(self) -> None [extrait de clear.__doc__]
clearUndoRedoStacks(self, historyToClear: PySide6.QtGui.QTextDocument.Stacks = PySide6.QtGui.QTextDocument.Stacks.UndoAndRedoStacks) -> None clearUndoRedoStacks(self, historyToClear: PySide6.QtGui.QTextDocument.Stacks = PySide6.QtGui.QTextDocument.Stacks.UndoAndRedoStacks) -> None [extrait de clearUndoRedoStacks.__doc__]
clone(self, parent: Optional[PySide6.QtCore.QObject] = None) -> PySide6.QtGui.QTextDocument clone(self, parent: Optional[PySide6.QtCore.QObject] = None) -> PySide6.QtGui.QTextDocument [extrait de clone.__doc__]
contentsChange
contentsChanged
createObject(self, f: PySide6.QtGui.QTextFormat) -> PySide6.QtGui.QTextObject createObject(self, f: PySide6.QtGui.QTextFormat) -> PySide6.QtGui.QTextObject [extrait de createObject.__doc__]
cursorPositionChanged
defaultCursorMoveStyle(self) -> PySide6.QtCore.Qt.CursorMoveStyle defaultCursorMoveStyle(self) -> PySide6.QtCore.Qt.CursorMoveStyle [extrait de defaultCursorMoveStyle.__doc__]
defaultFont(self) -> PySide6.QtGui.QFont defaultFont(self) -> PySide6.QtGui.QFont [extrait de defaultFont.__doc__]
defaultStyleSheet(self) -> str defaultStyleSheet(self) -> str [extrait de defaultStyleSheet.__doc__]
defaultTextOption(self) -> PySide6.QtGui.QTextOption defaultTextOption(self) -> PySide6.QtGui.QTextOption [extrait de defaultTextOption.__doc__]
destroyed
documentLayout(self) -> PySide6.QtGui.QAbstractTextDocumentLayout documentLayout(self) -> PySide6.QtGui.QAbstractTextDocumentLayout [extrait de documentLayout.__doc__]
documentLayoutChanged
documentMargin(self) -> float documentMargin(self) -> float [extrait de documentMargin.__doc__]
drawContents(self, painter: PySide6.QtGui.QPainter, rect: Union[PySide6.QtCore.QRectF, PySide6.QtCore.QRect] = Default(QRectF)) -> None drawContents(self, painter: PySide6.QtGui.QPainter, rect: Union[PySide6.QtCore.QRectF, PySide6.QtCore.QRect] = Default(QRectF)) -> None [extrait de drawContents.__doc__]
end(self) -> PySide6.QtGui.QTextBlock end(self) -> PySide6.QtGui.QTextBlock [extrait de end.__doc__]
find find(self, expr: Union[PySide6.QtCore.QRegularExpression, str], cursor: PySide6.QtGui.QTextCursor, options: PySide6.QtGui.QTextDocument.FindFlags = Default(QTextDocument.FindFlags)) -> PySide6.QtGui.QTextCursor [extrait de find.__doc__]
findBlock(self, pos: int) -> PySide6.QtGui.QTextBlock findBlock(self, pos: int) -> PySide6.QtGui.QTextBlock [extrait de findBlock.__doc__]
findBlockByLineNumber(self, blockNumber: int) -> PySide6.QtGui.QTextBlock findBlockByLineNumber(self, blockNumber: int) -> PySide6.QtGui.QTextBlock [extrait de findBlockByLineNumber.__doc__]
findBlockByNumber(self, blockNumber: int) -> PySide6.QtGui.QTextBlock findBlockByNumber(self, blockNumber: int) -> PySide6.QtGui.QTextBlock [extrait de findBlockByNumber.__doc__]
FindFlag
FindFlags
firstBlock(self) -> PySide6.QtGui.QTextBlock firstBlock(self) -> PySide6.QtGui.QTextBlock [extrait de firstBlock.__doc__]
frameAt(self, pos: int) -> PySide6.QtGui.QTextFrame frameAt(self, pos: int) -> PySide6.QtGui.QTextFrame [extrait de frameAt.__doc__]
idealWidth(self) -> float idealWidth(self) -> float [extrait de idealWidth.__doc__]
indentWidth(self) -> float indentWidth(self) -> float [extrait de indentWidth.__doc__]
isEmpty(self) -> bool isEmpty(self) -> bool [extrait de isEmpty.__doc__]
isModified(self) -> bool isModified(self) -> bool [extrait de isModified.__doc__]
isRedoAvailable(self) -> bool isRedoAvailable(self) -> bool [extrait de isRedoAvailable.__doc__]
isUndoAvailable(self) -> bool isUndoAvailable(self) -> bool [extrait de isUndoAvailable.__doc__]
isUndoRedoEnabled(self) -> bool isUndoRedoEnabled(self) -> bool [extrait de isUndoRedoEnabled.__doc__]
lastBlock(self) -> PySide6.QtGui.QTextBlock lastBlock(self) -> PySide6.QtGui.QTextBlock [extrait de lastBlock.__doc__]
lineCount(self) -> int lineCount(self) -> int [extrait de lineCount.__doc__]
loadResource(self, type: int, name: Union[PySide6.QtCore.QUrl, str]) -> Any loadResource(self, type: int, name: Union[PySide6.QtCore.QUrl, str]) -> Any [extrait de loadResource.__doc__]
markContentsDirty(self, from_: int, length: int) -> None markContentsDirty(self, from_: int, length: int) -> None [extrait de markContentsDirty.__doc__]
MarkdownFeature
MarkdownFeatures
maximumBlockCount(self) -> int maximumBlockCount(self) -> int [extrait de maximumBlockCount.__doc__]
MetaInformation
metaInformation(self, info: PySide6.QtGui.QTextDocument.MetaInformation) -> str metaInformation(self, info: PySide6.QtGui.QTextDocument.MetaInformation) -> str [extrait de metaInformation.__doc__]
modificationChanged
object(self, objectIndex: int) -> PySide6.QtGui.QTextObject object(self, objectIndex: int) -> PySide6.QtGui.QTextObject [extrait de object.__doc__]
objectForFormat(self, arg__1: PySide6.QtGui.QTextFormat) -> PySide6.QtGui.QTextObject objectForFormat(self, arg__1: PySide6.QtGui.QTextFormat) -> PySide6.QtGui.QTextObject [extrait de objectForFormat.__doc__]
objectNameChanged
pageCount(self) -> int pageCount(self) -> int [extrait de pageCount.__doc__]
pageSize(self) -> PySide6.QtCore.QSizeF pageSize(self) -> PySide6.QtCore.QSizeF [extrait de pageSize.__doc__]
print_(self, printer: PySide6.QtGui.QPagedPaintDevice) -> None print_(self, printer: PySide6.QtGui.QPagedPaintDevice) -> None [extrait de print_.__doc__]
redo redo(self) -> None [extrait de redo.__doc__]
redoAvailable
resource(self, type: int, name: Union[PySide6.QtCore.QUrl, str]) -> Any resource(self, type: int, name: Union[PySide6.QtCore.QUrl, str]) -> Any [extrait de resource.__doc__]
ResourceType
revision(self) -> int revision(self) -> int [extrait de revision.__doc__]
rootFrame(self) -> PySide6.QtGui.QTextFrame rootFrame(self) -> PySide6.QtGui.QTextFrame [extrait de rootFrame.__doc__]
setBaselineOffset(self, baseline: float) -> None setBaselineOffset(self, baseline: float) -> None [extrait de setBaselineOffset.__doc__]
setBaseUrl(self, url: Union[PySide6.QtCore.QUrl, str]) -> None setBaseUrl(self, url: Union[PySide6.QtCore.QUrl, str]) -> None [extrait de setBaseUrl.__doc__]
setDefaultCursorMoveStyle(self, style: PySide6.QtCore.Qt.CursorMoveStyle) -> None setDefaultCursorMoveStyle(self, style: PySide6.QtCore.Qt.CursorMoveStyle) -> None [extrait de setDefaultCursorMoveStyle.__doc__]
setDefaultFont(self, font: Union[PySide6.QtGui.QFont, str, Sequence[str]]) -> None setDefaultFont(self, font: Union[PySide6.QtGui.QFont, str, Sequence[str]]) -> None [extrait de setDefaultFont.__doc__]
setDefaultStyleSheet(self, sheet: str) -> None setDefaultStyleSheet(self, sheet: str) -> None [extrait de setDefaultStyleSheet.__doc__]
setDefaultTextOption(self, option: Union[PySide6.QtGui.QTextOption, PySide6.QtCore.Qt.Alignment]) -> None setDefaultTextOption(self, option: Union[PySide6.QtGui.QTextOption, PySide6.QtCore.Qt.Alignment]) -> None [extrait de setDefaultTextOption.__doc__]
setDocumentLayout(self, layout: PySide6.QtGui.QAbstractTextDocumentLayout) -> None setDocumentLayout(self, layout: PySide6.QtGui.QAbstractTextDocumentLayout) -> None [extrait de setDocumentLayout.__doc__]
setDocumentMargin(self, margin: float) -> None setDocumentMargin(self, margin: float) -> None [extrait de setDocumentMargin.__doc__]
setHtml(self, html: str) -> None setHtml(self, html: str) -> None [extrait de setHtml.__doc__]
setIndentWidth(self, width: float) -> None setIndentWidth(self, width: float) -> None [extrait de setIndentWidth.__doc__]
setMarkdown(self, markdown: str, features: PySide6.QtGui.QTextDocument.MarkdownFeatures = PySide6.QtGui.QTextDocument.MarkdownFeature.MarkdownDialectGitHub) -> None setMarkdown(self, markdown: str, features: PySide6.QtGui.QTextDocument.MarkdownFeatures = PySide6.QtGui.QTextDocument.MarkdownFeature.MarkdownDialectGitHub) -> None [extrait de setMarkdown.__doc__]
setMaximumBlockCount(self, maximum: int) -> None setMaximumBlockCount(self, maximum: int) -> None [extrait de setMaximumBlockCount.__doc__]
setMetaInformation(self, info: PySide6.QtGui.QTextDocument.MetaInformation, arg__2: str) -> None setMetaInformation(self, info: PySide6.QtGui.QTextDocument.MetaInformation, arg__2: str) -> None [extrait de setMetaInformation.__doc__]
setModified(self, m: bool = True) -> None setModified(self, m: bool = True) -> None [extrait de setModified.__doc__]
setPageSize(self, size: Union[PySide6.QtCore.QSizeF, PySide6.QtCore.QSize]) -> None setPageSize(self, size: Union[PySide6.QtCore.QSizeF, PySide6.QtCore.QSize]) -> None [extrait de setPageSize.__doc__]
setPlainText(self, text: str) -> None setPlainText(self, text: str) -> None [extrait de setPlainText.__doc__]
setSubScriptBaseline(self, baseline: float) -> None setSubScriptBaseline(self, baseline: float) -> None [extrait de setSubScriptBaseline.__doc__]
setSuperScriptBaseline(self, baseline: float) -> None setSuperScriptBaseline(self, baseline: float) -> None [extrait de setSuperScriptBaseline.__doc__]
setTextWidth(self, width: float) -> None setTextWidth(self, width: float) -> None [extrait de setTextWidth.__doc__]
setUndoRedoEnabled(self, enable: bool) -> None setUndoRedoEnabled(self, enable: bool) -> None [extrait de setUndoRedoEnabled.__doc__]
setUseDesignMetrics(self, b: bool) -> None setUseDesignMetrics(self, b: bool) -> None [extrait de setUseDesignMetrics.__doc__]
size(self) -> PySide6.QtCore.QSizeF size(self) -> PySide6.QtCore.QSizeF [extrait de size.__doc__]
Stacks
subScriptBaseline(self) -> float subScriptBaseline(self) -> float [extrait de subScriptBaseline.__doc__]
superScriptBaseline(self) -> float superScriptBaseline(self) -> float [extrait de superScriptBaseline.__doc__]
textWidth(self) -> float textWidth(self) -> float [extrait de textWidth.__doc__]
toHtml(self) -> str toHtml(self) -> str [extrait de toHtml.__doc__]
toMarkdown(self, features: PySide6.QtGui.QTextDocument.MarkdownFeatures = PySide6.QtGui.QTextDocument.MarkdownFeature.MarkdownDialectGitHub) -> str toMarkdown(self, features: PySide6.QtGui.QTextDocument.MarkdownFeatures = PySide6.QtGui.QTextDocument.MarkdownFeature.MarkdownDialectGitHub) -> str [extrait de toMarkdown.__doc__]
toPlainText(self) -> str toPlainText(self) -> str [extrait de toPlainText.__doc__]
toRawText(self) -> str toRawText(self) -> str [extrait de toRawText.__doc__]
tr
undo undo(self) -> None [extrait de undo.__doc__]
undoAvailable
undoCommandAdded
useDesignMetrics(self) -> bool useDesignMetrics(self) -> bool [extrait de useDesignMetrics.__doc__]

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

__getattribute__, __init_subclass__, __repr__, __subclasshook__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, event, eventFilter, findChild, findChildren, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, parent, property, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent

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

__getattribute__, __init_subclass__, __subclasshook__

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

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