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

Informations générales

Héritage

builtins.object
    Object
        QTextCursor

Définition

class QTextCursor(Object):

Description [extrait de QTextCursor.__doc__]

QTextCursor(self) -> None
QTextCursor(self, block: PySide6.QtGui.QTextBlock) -> None
QTextCursor(self, cursor: PySide6.QtGui.QTextCursor) -> None
QTextCursor(self, document: PySide6.QtGui.QTextDocument) -> None
QTextCursor(self, frame: PySide6.QtGui.QTextFrame) -> 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
BlockUnderCursorPySide6.QtGui.QTextCursor.SelectionType.BlockUnderCursor
DocumentPySide6.QtGui.QTextCursor.SelectionType.Document
DownPySide6.QtGui.QTextCursor.MoveOperation.Down
EndPySide6.QtGui.QTextCursor.MoveOperation.End
EndOfBlockPySide6.QtGui.QTextCursor.MoveOperation.EndOfBlock
EndOfLinePySide6.QtGui.QTextCursor.MoveOperation.EndOfLine
EndOfWordPySide6.QtGui.QTextCursor.MoveOperation.EndOfWord
KeepAnchorPySide6.QtGui.QTextCursor.MoveMode.KeepAnchor
LeftPySide6.QtGui.QTextCursor.MoveOperation.Left
LineUnderCursorPySide6.QtGui.QTextCursor.SelectionType.LineUnderCursor
MoveAnchorPySide6.QtGui.QTextCursor.MoveMode.MoveAnchor
NextBlockPySide6.QtGui.QTextCursor.MoveOperation.NextBlock
NextCellPySide6.QtGui.QTextCursor.MoveOperation.NextCell
NextCharacterPySide6.QtGui.QTextCursor.MoveOperation.NextCharacter
NextRowPySide6.QtGui.QTextCursor.MoveOperation.NextRow
NextWordPySide6.QtGui.QTextCursor.MoveOperation.NextWord
NoMovePySide6.QtGui.QTextCursor.MoveOperation.NoMove
PreviousBlockPySide6.QtGui.QTextCursor.MoveOperation.PreviousBlock
PreviousCellPySide6.QtGui.QTextCursor.MoveOperation.PreviousCell
PreviousCharacterPySide6.QtGui.QTextCursor.MoveOperation.PreviousCharacter
PreviousRowPySide6.QtGui.QTextCursor.MoveOperation.PreviousRow
PreviousWordPySide6.QtGui.QTextCursor.MoveOperation.PreviousWord
RightPySide6.QtGui.QTextCursor.MoveOperation.Right
StartPySide6.QtGui.QTextCursor.MoveOperation.Start
StartOfBlockPySide6.QtGui.QTextCursor.MoveOperation.StartOfBlock
StartOfLinePySide6.QtGui.QTextCursor.MoveOperation.StartOfLine
StartOfWordPySide6.QtGui.QTextCursor.MoveOperation.StartOfWord
UpPySide6.QtGui.QTextCursor.MoveOperation.Up
WordLeftPySide6.QtGui.QTextCursor.MoveOperation.WordLeft
WordRightPySide6.QtGui.QTextCursor.MoveOperation.WordRight
WordUnderCursorPySide6.QtGui.QTextCursor.SelectionType.WordUnderCursor

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__]
__lt__(self, value) Return self<value. [extrait de __lt__.__doc__]
__ne__(self, value) Return self!=value. [extrait de __ne__.__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
__bool__(self) self != 0 [extrait de __bool__.__doc__]
__copy__() -> None __copy__() -> None [extrait de __copy__.__doc__]
anchor(self) -> int anchor(self) -> int [extrait de anchor.__doc__]
atBlockEnd(self) -> bool atBlockEnd(self) -> bool [extrait de atBlockEnd.__doc__]
atBlockStart(self) -> bool atBlockStart(self) -> bool [extrait de atBlockStart.__doc__]
atEnd(self) -> bool atEnd(self) -> bool [extrait de atEnd.__doc__]
atStart(self) -> bool atStart(self) -> bool [extrait de atStart.__doc__]
beginEditBlock(self) -> None beginEditBlock(self) -> None [extrait de beginEditBlock.__doc__]
block(self) -> PySide6.QtGui.QTextBlock block(self) -> PySide6.QtGui.QTextBlock [extrait de block.__doc__]
blockCharFormat(self) -> PySide6.QtGui.QTextCharFormat blockCharFormat(self) -> PySide6.QtGui.QTextCharFormat [extrait de blockCharFormat.__doc__]
blockFormat(self) -> PySide6.QtGui.QTextBlockFormat blockFormat(self) -> PySide6.QtGui.QTextBlockFormat [extrait de blockFormat.__doc__]
blockNumber(self) -> int blockNumber(self) -> int [extrait de blockNumber.__doc__]
charFormat(self) -> PySide6.QtGui.QTextCharFormat charFormat(self) -> PySide6.QtGui.QTextCharFormat [extrait de charFormat.__doc__]
clearSelection(self) -> None clearSelection(self) -> None [extrait de clearSelection.__doc__]
columnNumber(self) -> int columnNumber(self) -> int [extrait de columnNumber.__doc__]
createList createList(self, format: PySide6.QtGui.QTextListFormat) -> PySide6.QtGui.QTextList [extrait de createList.__doc__]
currentFrame(self) -> PySide6.QtGui.QTextFrame currentFrame(self) -> PySide6.QtGui.QTextFrame [extrait de currentFrame.__doc__]
currentList(self) -> PySide6.QtGui.QTextList currentList(self) -> PySide6.QtGui.QTextList [extrait de currentList.__doc__]
currentTable(self) -> PySide6.QtGui.QTextTable currentTable(self) -> PySide6.QtGui.QTextTable [extrait de currentTable.__doc__]
deleteChar(self) -> None deleteChar(self) -> None [extrait de deleteChar.__doc__]
deletePreviousChar(self) -> None deletePreviousChar(self) -> None [extrait de deletePreviousChar.__doc__]
document(self) -> PySide6.QtGui.QTextDocument document(self) -> PySide6.QtGui.QTextDocument [extrait de document.__doc__]
endEditBlock(self) -> None endEditBlock(self) -> None [extrait de endEditBlock.__doc__]
hasComplexSelection(self) -> bool hasComplexSelection(self) -> bool [extrait de hasComplexSelection.__doc__]
hasSelection(self) -> bool hasSelection(self) -> bool [extrait de hasSelection.__doc__]
insertBlock insertBlock(self) -> None [extrait de insertBlock.__doc__]
insertFragment(self, fragment: PySide6.QtGui.QTextDocumentFragment) -> None insertFragment(self, fragment: PySide6.QtGui.QTextDocumentFragment) -> None [extrait de insertFragment.__doc__]
insertFrame(self, format: PySide6.QtGui.QTextFrameFormat) -> PySide6.QtGui.QTextFrame insertFrame(self, format: PySide6.QtGui.QTextFrameFormat) -> PySide6.QtGui.QTextFrame [extrait de insertFrame.__doc__]
insertHtml(self, html: str) -> None insertHtml(self, html: str) -> None [extrait de insertHtml.__doc__]
insertImage insertImage(self, format: PySide6.QtGui.QTextImageFormat) -> None [extrait de insertImage.__doc__]
insertList insertList(self, format: PySide6.QtGui.QTextListFormat) -> PySide6.QtGui.QTextList [extrait de insertList.__doc__]
insertTable insertTable(self, rows: int, cols: int) -> PySide6.QtGui.QTextTable [extrait de insertTable.__doc__]
insertText insertText(self, text: str) -> None [extrait de insertText.__doc__]
isCopyOf(self, other: PySide6.QtGui.QTextCursor) -> bool isCopyOf(self, other: PySide6.QtGui.QTextCursor) -> bool [extrait de isCopyOf.__doc__]
isNull(self) -> bool isNull(self) -> bool [extrait de isNull.__doc__]
joinPreviousEditBlock(self) -> None joinPreviousEditBlock(self) -> None [extrait de joinPreviousEditBlock.__doc__]
keepPositionOnInsert(self) -> bool keepPositionOnInsert(self) -> bool [extrait de keepPositionOnInsert.__doc__]
mergeBlockCharFormat(self, modifier: PySide6.QtGui.QTextCharFormat) -> None mergeBlockCharFormat(self, modifier: PySide6.QtGui.QTextCharFormat) -> None [extrait de mergeBlockCharFormat.__doc__]
mergeBlockFormat(self, modifier: PySide6.QtGui.QTextBlockFormat) -> None mergeBlockFormat(self, modifier: PySide6.QtGui.QTextBlockFormat) -> None [extrait de mergeBlockFormat.__doc__]
mergeCharFormat(self, modifier: PySide6.QtGui.QTextCharFormat) -> None mergeCharFormat(self, modifier: PySide6.QtGui.QTextCharFormat) -> None [extrait de mergeCharFormat.__doc__]
MoveMode
MoveOperation
movePosition(self, op: PySide6.QtGui.QTextCursor.MoveOperation, arg__2: PySide6.QtGui.QTextCursor.MoveMode = PySide6.QtDesigner.QDesignerFormWindowCursorInterface.MoveMode.MoveAnchor, n: int = 1) -> bool movePosition(self, op: PySide6.QtGui.QTextCursor.MoveOperation, arg__2: PySide6.QtGui.QTextCursor.MoveMode = PySide6.QtDesigner.QDesignerFormWindowCursorInterface.MoveMode.MoveAnchor, n: int = 1) -> bool [extrait de movePosition.__doc__]
position(self) -> int position(self) -> int [extrait de position.__doc__]
positionInBlock(self) -> int positionInBlock(self) -> int [extrait de positionInBlock.__doc__]
removeSelectedText(self) -> None removeSelectedText(self) -> None [extrait de removeSelectedText.__doc__]
select(self, selection: PySide6.QtGui.QTextCursor.SelectionType) -> None select(self, selection: PySide6.QtGui.QTextCursor.SelectionType) -> None [extrait de select.__doc__]
selectedTableCells(self) -> Tuple[int, int, int, int] selectedTableCells(self) -> Tuple[int, int, int, int] [extrait de selectedTableCells.__doc__]
selectedText(self) -> str selectedText(self) -> str [extrait de selectedText.__doc__]
selection(self) -> PySide6.QtGui.QTextDocumentFragment selection(self) -> PySide6.QtGui.QTextDocumentFragment [extrait de selection.__doc__]
selectionEnd(self) -> int selectionEnd(self) -> int [extrait de selectionEnd.__doc__]
selectionStart(self) -> int selectionStart(self) -> int [extrait de selectionStart.__doc__]
SelectionType
setBlockCharFormat(self, format: PySide6.QtGui.QTextCharFormat) -> None setBlockCharFormat(self, format: PySide6.QtGui.QTextCharFormat) -> None [extrait de setBlockCharFormat.__doc__]
setBlockFormat(self, format: PySide6.QtGui.QTextBlockFormat) -> None setBlockFormat(self, format: PySide6.QtGui.QTextBlockFormat) -> None [extrait de setBlockFormat.__doc__]
setCharFormat(self, format: PySide6.QtGui.QTextCharFormat) -> None setCharFormat(self, format: PySide6.QtGui.QTextCharFormat) -> None [extrait de setCharFormat.__doc__]
setKeepPositionOnInsert(self, b: bool) -> None setKeepPositionOnInsert(self, b: bool) -> None [extrait de setKeepPositionOnInsert.__doc__]
setPosition(self, pos: int, mode: PySide6.QtGui.QTextCursor.MoveMode = PySide6.QtDesigner.QDesignerFormWindowCursorInterface.MoveMode.MoveAnchor) -> None setPosition(self, pos: int, mode: PySide6.QtGui.QTextCursor.MoveMode = PySide6.QtDesigner.QDesignerFormWindowCursorInterface.MoveMode.MoveAnchor) -> None [extrait de setPosition.__doc__]
setVerticalMovementX(self, x: int) -> None setVerticalMovementX(self, x: int) -> None [extrait de setVerticalMovementX.__doc__]
setVisualNavigation(self, b: bool) -> None setVisualNavigation(self, b: bool) -> None [extrait de setVisualNavigation.__doc__]
swap(self, other: PySide6.QtGui.QTextCursor) -> None swap(self, other: PySide6.QtGui.QTextCursor) -> None [extrait de swap.__doc__]
verticalMovementX(self) -> int verticalMovementX(self) -> int [extrait de verticalMovementX.__doc__]
visualNavigation(self) -> bool visualNavigation(self) -> bool [extrait de visualNavigation.__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__