Home
·
All Classes
·
Modules
QTextCursor Class Reference
[
QtGui
module]
Types
enum
MoveMode
{ MoveAnchor, KeepAnchor }
enum
MoveOperation
{ NoMove, Start, Up, StartOfLine, ..., PreviousRow }
enum
SelectionType
{ WordUnderCursor, LineUnderCursor, BlockUnderCursor, Document }
Methods
__init__
(
self
)
__init__
(
self
, QTextDocument)
__init__
(
self
, QTextFrame)
__init__
(
self
, QTextBlock)
__init__
(
self
, QTextCursor)
int
anchor
(
self
)
bool
atBlockEnd
(
self
)
bool
atBlockStart
(
self
)
bool
atEnd
(
self
)
bool
atStart
(
self
)
beginEditBlock
(
self
)
QTextBlock
block
(
self
)
QTextCharFormat
blockCharFormat
(
self
)
QTextBlockFormat
blockFormat
(
self
)
int
blockNumber
(
self
)
QTextCharFormat
charFormat
(
self
)
clearSelection
(
self
)
int
columnNumber
(
self
)
QTextList
createList
(
self
, QTextListFormat)
QTextList
createList
(
self
, QTextListFormat.Style)
QTextFrame
currentFrame
(
self
)
QTextList
currentList
(
self
)
QTextTable
currentTable
(
self
)
deleteChar
(
self
)
deletePreviousChar
(
self
)
QTextDocument
document
(
self
)
endEditBlock
(
self
)
bool
hasComplexSelection
(
self
)
bool
hasSelection
(
self
)
insertBlock
(
self
)
insertBlock
(
self
, QTextBlockFormat)
insertBlock
(
self
, QTextBlockFormat, QTextCharFormat)
insertFragment
(
self
, QTextDocumentFragment)
QTextFrame
insertFrame
(
self
, QTextFrameFormat)
insertHtml
(
self
, QString)
insertImage
(
self
, QTextImageFormat)
insertImage
(
self
, QTextImageFormat, QTextFrameFormat.Position)
insertImage
(
self
, QString)
insertImage
(
self
, QImage, QString
name
= QString())
QTextList
insertList
(
self
, QTextListFormat)
QTextList
insertList
(
self
, QTextListFormat.Style)
QTextTable
insertTable
(
self
, int, int, QTextTableFormat)
QTextTable
insertTable
(
self
, int, int)
insertText
(
self
, QString)
insertText
(
self
, QString, QTextCharFormat)
bool
isCopyOf
(
self
, QTextCursor)
bool
isNull
(
self
)
joinPreviousEditBlock
(
self
)
bool
keepPositionOnInsert
(
self
)
mergeBlockCharFormat
(
self
, QTextCharFormat)
mergeBlockFormat
(
self
, QTextBlockFormat)
mergeCharFormat
(
self
, QTextCharFormat)
bool
movePosition
(
self
, MoveOperation, MoveMode
mode
= QTextCursor.MoveAnchor, int
n
= 1)
int
position
(
self
)
int
positionInBlock
(
self
)
removeSelectedText
(
self
)
select
(
self
, SelectionType)
(int, int, int, int)
selectedTableCells
(
self
)
QString
selectedText
(
self
)
QTextDocumentFragment
selection
(
self
)
int
selectionEnd
(
self
)
int
selectionStart
(
self
)
setBlockCharFormat
(
self
, QTextCharFormat)
setBlockFormat
(
self
, QTextBlockFormat)
setCharFormat
(
self
, QTextCharFormat)
setKeepPositionOnInsert
(
self
, bool
b
)
setPosition
(
self
, int, MoveMode
mode
= QTextCursor.MoveAnchor)
setVerticalMovementX
(
self
, int
x
)
setVisualNavigation
(
self
, bool)
int
verticalMovementX
(
self
)
bool
visualNavigation
(
self
)
Special Methods
bool
__eq__
(
self
, QTextCursor)
bool
__ge__
(
self
, QTextCursor)
bool
__gt__
(
self
, QTextCursor)
bool
__le__
(
self
, QTextCursor)
bool
__lt__
(
self
, QTextCursor)
bool
__ne__
(
self
, QTextCursor)
Detailed Description
Type Documentation
QTextCursor.MoveMode
QTextCursor.MoveOperation
QTextCursor.SelectionType
Method Documentation
QTextCursor.__init__ (
self
)
QTextCursor.__init__ (
self
,
QTextDocument
)
QTextCursor.__init__ (
self
,
QTextFrame
)
QTextCursor.__init__ (
self
,
QTextBlock
)
QTextCursor.__init__ (
self
,
QTextCursor
)
int QTextCursor.anchor (
self
)
bool QTextCursor.atBlockEnd (
self
)
bool QTextCursor.atBlockStart (
self
)
bool QTextCursor.atEnd (
self
)
bool QTextCursor.atStart (
self
)
QTextCursor.beginEditBlock (
self
)
QTextBlock
QTextCursor.block (
self
)
QTextCharFormat
QTextCursor.blockCharFormat (
self
)
QTextBlockFormat
QTextCursor.blockFormat (
self
)
int QTextCursor.blockNumber (
self
)
QTextCharFormat
QTextCursor.charFormat (
self
)
QTextCursor.clearSelection (
self
)
int QTextCursor.columnNumber (
self
)
QTextList
QTextCursor.createList (
self
,
QTextListFormat
)
QTextList
QTextCursor.createList (
self
,
QTextListFormat.Style
)
QTextFrame
QTextCursor.currentFrame (
self
)
QTextList
QTextCursor.currentList (
self
)
QTextTable
QTextCursor.currentTable (
self
)
QTextCursor.deleteChar (
self
)
QTextCursor.deletePreviousChar (
self
)
QTextDocument
QTextCursor.document (
self
)
QTextCursor.endEditBlock (
self
)
bool QTextCursor.hasComplexSelection (
self
)
bool QTextCursor.hasSelection (
self
)
QTextCursor.insertBlock (
self
)
QTextCursor.insertBlock (
self
,
QTextBlockFormat
)
QTextCursor.insertBlock (
self
,
QTextBlockFormat
,
QTextCharFormat
)
QTextCursor.insertFragment (
self
,
QTextDocumentFragment
)
QTextFrame
QTextCursor.insertFrame (
self
,
QTextFrameFormat
)
QTextCursor.insertHtml (
self
, QString)
QTextCursor.insertImage (
self
,
QTextImageFormat
)
QTextCursor.insertImage (
self
,
QTextImageFormat
,
QTextFrameFormat.Position
)
QTextCursor.insertImage (
self
, QString)
QTextCursor.insertImage (
self
,
QImage
, QString
name
= QString())
QTextList
QTextCursor.insertList (
self
,
QTextListFormat
)
QTextList
QTextCursor.insertList (
self
,
QTextListFormat.Style
)
QTextTable
QTextCursor.insertTable (
self
, int, int,
QTextTableFormat
)
QTextTable
QTextCursor.insertTable (
self
, int, int)
QTextCursor.insertText (
self
, QString)
QTextCursor.insertText (
self
, QString,
QTextCharFormat
)
bool QTextCursor.isCopyOf (
self
,
QTextCursor
)
bool QTextCursor.isNull (
self
)
QTextCursor.joinPreviousEditBlock (
self
)
bool QTextCursor.keepPositionOnInsert (
self
)
QTextCursor.mergeBlockCharFormat (
self
,
QTextCharFormat
)
QTextCursor.mergeBlockFormat (
self
,
QTextBlockFormat
)
QTextCursor.mergeCharFormat (
self
,
QTextCharFormat
)
bool QTextCursor.movePosition (
self
,
MoveOperation
,
MoveMode
mode
= QTextCursor.MoveAnchor, int
n
= 1)
int QTextCursor.position (
self
)
int QTextCursor.positionInBlock (
self
)
QTextCursor.removeSelectedText (
self
)
QTextCursor.select (
self
,
SelectionType
)
(int, int, int, int) QTextCursor.selectedTableCells (
self
)
QString QTextCursor.selectedText (
self
)
QTextDocumentFragment
QTextCursor.selection (
self
)
int QTextCursor.selectionEnd (
self
)
int QTextCursor.selectionStart (
self
)
QTextCursor.setBlockCharFormat (
self
,
QTextCharFormat
)
QTextCursor.setBlockFormat (
self
,
QTextBlockFormat
)
QTextCursor.setCharFormat (
self
,
QTextCharFormat
)
QTextCursor.setKeepPositionOnInsert (
self
, bool
b
)
QTextCursor.setPosition (
self
, int,
MoveMode
mode
= QTextCursor.MoveAnchor)
QTextCursor.setVerticalMovementX (
self
, int
x
)
QTextCursor.setVisualNavigation (
self
, bool)
int QTextCursor.verticalMovementX (
self
)
bool QTextCursor.visualNavigation (
self
)
bool QTextCursor.__eq__ (
self
,
QTextCursor
)
bool QTextCursor.__ge__ (
self
,
QTextCursor
)
bool QTextCursor.__gt__ (
self
,
QTextCursor
)
bool QTextCursor.__le__ (
self
,
QTextCursor
)
bool QTextCursor.__lt__ (
self
,
QTextCursor
)
bool QTextCursor.__ne__ (
self
,
QTextCursor
)
PyQt 4.8 for X11
Copyright ©
Riverbank Computing Ltd
and
Nokia
2010
Qt 4.7.0