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

Informations générales

Héritage

builtins.object
    Object
        QTextCursor

Définition

class QTextCursor(Object):

Description [extrait de QTextCursor.__doc__]

QTextCursor(self)
QTextCursor(self, block: PySide2.QtGui.QTextBlock)
QTextCursor(self, cursor: PySide2.QtGui.QTextCursor)
QTextCursor(self, document: PySide2.QtGui.QTextDocument)
QTextCursor(self, frame: PySide2.QtGui.QTextFrame)

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
BlockUnderCursorPySide2.QtGui.QTextCursor.SelectionType.BlockUnderCursor
DocumentPySide2.QtGui.QTextCursor.SelectionType.Document
DownPySide2.QtGui.QTextCursor.MoveOperation.Down
EndPySide2.QtGui.QTextCursor.MoveOperation.End
EndOfBlockPySide2.QtGui.QTextCursor.MoveOperation.EndOfBlock
EndOfLinePySide2.QtGui.QTextCursor.MoveOperation.EndOfLine
EndOfWordPySide2.QtGui.QTextCursor.MoveOperation.EndOfWord
KeepAnchorPySide2.QtGui.QTextCursor.MoveMode.KeepAnchor
LeftPySide2.QtGui.QTextCursor.MoveOperation.Left
LineUnderCursorPySide2.QtGui.QTextCursor.SelectionType.LineUnderCursor
MoveAnchorPySide2.QtGui.QTextCursor.MoveMode.MoveAnchor
NextBlockPySide2.QtGui.QTextCursor.MoveOperation.NextBlock
NextCellPySide2.QtGui.QTextCursor.MoveOperation.NextCell
NextCharacterPySide2.QtGui.QTextCursor.MoveOperation.NextCharacter
NextRowPySide2.QtGui.QTextCursor.MoveOperation.NextRow
NextWordPySide2.QtGui.QTextCursor.MoveOperation.NextWord
NoMovePySide2.QtGui.QTextCursor.MoveOperation.NoMove
PreviousBlockPySide2.QtGui.QTextCursor.MoveOperation.PreviousBlock
PreviousCellPySide2.QtGui.QTextCursor.MoveOperation.PreviousCell
PreviousCharacterPySide2.QtGui.QTextCursor.MoveOperation.PreviousCharacter
PreviousRowPySide2.QtGui.QTextCursor.MoveOperation.PreviousRow
PreviousWordPySide2.QtGui.QTextCursor.MoveOperation.PreviousWord
RightPySide2.QtGui.QTextCursor.MoveOperation.Right
StartPySide2.QtGui.QTextCursor.MoveOperation.Start
StartOfBlockPySide2.QtGui.QTextCursor.MoveOperation.StartOfBlock
StartOfLinePySide2.QtGui.QTextCursor.MoveOperation.StartOfLine
StartOfWordPySide2.QtGui.QTextCursor.MoveOperation.StartOfWord
UpPySide2.QtGui.QTextCursor.MoveOperation.Up
WordLeftPySide2.QtGui.QTextCursor.MoveOperation.WordLeft
WordRightPySide2.QtGui.QTextCursor.MoveOperation.WordRight
WordUnderCursorPySide2.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__(self) __copy__(self) [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) beginEditBlock(self) [extrait de beginEditBlock.__doc__]
block(self) -> PySide2.QtGui.QTextBlock block(self) -> PySide2.QtGui.QTextBlock [extrait de block.__doc__]
blockCharFormat(self) -> PySide2.QtGui.QTextCharFormat blockCharFormat(self) -> PySide2.QtGui.QTextCharFormat [extrait de blockCharFormat.__doc__]
blockFormat(self) -> PySide2.QtGui.QTextBlockFormat blockFormat(self) -> PySide2.QtGui.QTextBlockFormat [extrait de blockFormat.__doc__]
blockNumber(self) -> int blockNumber(self) -> int [extrait de blockNumber.__doc__]
charFormat(self) -> PySide2.QtGui.QTextCharFormat charFormat(self) -> PySide2.QtGui.QTextCharFormat [extrait de charFormat.__doc__]
clearSelection(self) clearSelection(self) [extrait de clearSelection.__doc__]
columnNumber(self) -> int columnNumber(self) -> int [extrait de columnNumber.__doc__]
createList createList(self, format: PySide2.QtGui.QTextListFormat) -> PySide2.QtGui.QTextList [extrait de createList.__doc__]
currentFrame(self) -> PySide2.QtGui.QTextFrame currentFrame(self) -> PySide2.QtGui.QTextFrame [extrait de currentFrame.__doc__]
currentList(self) -> PySide2.QtGui.QTextList currentList(self) -> PySide2.QtGui.QTextList [extrait de currentList.__doc__]
currentTable(self) -> PySide2.QtGui.QTextTable currentTable(self) -> PySide2.QtGui.QTextTable [extrait de currentTable.__doc__]
deleteChar(self) deleteChar(self) [extrait de deleteChar.__doc__]
deletePreviousChar(self) deletePreviousChar(self) [extrait de deletePreviousChar.__doc__]
document(self) -> PySide2.QtGui.QTextDocument document(self) -> PySide2.QtGui.QTextDocument [extrait de document.__doc__]
endEditBlock(self) endEditBlock(self) [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) [extrait de insertBlock.__doc__]
insertFragment(self, fragment: PySide2.QtGui.QTextDocumentFragment) insertFragment(self, fragment: PySide2.QtGui.QTextDocumentFragment) [extrait de insertFragment.__doc__]
insertFrame(self, format: PySide2.QtGui.QTextFrameFormat) -> PySide2.QtGui.QTextFrame insertFrame(self, format: PySide2.QtGui.QTextFrameFormat) -> PySide2.QtGui.QTextFrame [extrait de insertFrame.__doc__]
insertHtml(self, html: str) insertHtml(self, html: str) [extrait de insertHtml.__doc__]
insertImage insertImage(self, format: PySide2.QtGui.QTextImageFormat) [extrait de insertImage.__doc__]
insertList insertList(self, format: PySide2.QtGui.QTextListFormat) -> PySide2.QtGui.QTextList [extrait de insertList.__doc__]
insertTable insertTable(self, rows: int, cols: int) -> PySide2.QtGui.QTextTable [extrait de insertTable.__doc__]
insertText insertText(self, text: str) [extrait de insertText.__doc__]
isCopyOf(self, other: PySide2.QtGui.QTextCursor) -> bool isCopyOf(self, other: PySide2.QtGui.QTextCursor) -> bool [extrait de isCopyOf.__doc__]
isNull(self) -> bool isNull(self) -> bool [extrait de isNull.__doc__]
joinPreviousEditBlock(self) joinPreviousEditBlock(self) [extrait de joinPreviousEditBlock.__doc__]
keepPositionOnInsert(self) -> bool keepPositionOnInsert(self) -> bool [extrait de keepPositionOnInsert.__doc__]
mergeBlockCharFormat(self, modifier: PySide2.QtGui.QTextCharFormat) mergeBlockCharFormat(self, modifier: PySide2.QtGui.QTextCharFormat) [extrait de mergeBlockCharFormat.__doc__]
mergeBlockFormat(self, modifier: PySide2.QtGui.QTextBlockFormat) mergeBlockFormat(self, modifier: PySide2.QtGui.QTextBlockFormat) [extrait de mergeBlockFormat.__doc__]
mergeCharFormat(self, modifier: PySide2.QtGui.QTextCharFormat) mergeCharFormat(self, modifier: PySide2.QtGui.QTextCharFormat) [extrait de mergeCharFormat.__doc__]
MoveMode
MoveOperation
movePosition(self, op: PySide2.QtGui.QTextCursor.MoveOperation, arg__2: PySide2.QtGui.QTextCursor.MoveMode = PySide2.QtGui.QTextCursor.MoveMode.MoveAnchor, n: int = 1) -> bool movePosition(self, op: PySide2.QtGui.QTextCursor.MoveOperation, arg__2: PySide2.QtGui.QTextCursor.MoveMode = PySide2.QtGui.QTextCursor.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) removeSelectedText(self) [extrait de removeSelectedText.__doc__]
select(self, selection: PySide2.QtGui.QTextCursor.SelectionType) select(self, selection: PySide2.QtGui.QTextCursor.SelectionType) [extrait de select.__doc__]
selectedTableCells(self) -> typing.Tuple[int, int, int, int] selectedTableCells(self) -> typing.Tuple[int, int, int, int] [extrait de selectedTableCells.__doc__]
selectedText(self) -> str selectedText(self) -> str [extrait de selectedText.__doc__]
selection(self) -> PySide2.QtGui.QTextDocumentFragment selection(self) -> PySide2.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: PySide2.QtGui.QTextCharFormat) setBlockCharFormat(self, format: PySide2.QtGui.QTextCharFormat) [extrait de setBlockCharFormat.__doc__]
setBlockFormat(self, format: PySide2.QtGui.QTextBlockFormat) setBlockFormat(self, format: PySide2.QtGui.QTextBlockFormat) [extrait de setBlockFormat.__doc__]
setCharFormat(self, format: PySide2.QtGui.QTextCharFormat) setCharFormat(self, format: PySide2.QtGui.QTextCharFormat) [extrait de setCharFormat.__doc__]
setKeepPositionOnInsert(self, b: bool) setKeepPositionOnInsert(self, b: bool) [extrait de setKeepPositionOnInsert.__doc__]
setPosition(self, pos: int, mode: PySide2.QtGui.QTextCursor.MoveMode = PySide2.QtGui.QTextCursor.MoveMode.MoveAnchor) setPosition(self, pos: int, mode: PySide2.QtGui.QTextCursor.MoveMode = PySide2.QtGui.QTextCursor.MoveMode.MoveAnchor) [extrait de setPosition.__doc__]
setVerticalMovementX(self, x: int) setVerticalMovementX(self, x: int) [extrait de setVerticalMovementX.__doc__]
setVisualNavigation(self, b: bool) setVisualNavigation(self, b: bool) [extrait de setVisualNavigation.__doc__]
swap(self, other: PySide2.QtGui.QTextCursor) swap(self, other: PySide2.QtGui.QTextCursor) [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

__init_subclass__, __subclasshook__

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

__delattr__, __dir__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__