API reference - Class QTextCursor

Notation used in Ruby API documentation

Description: Binding of QTextCursor

Sub-classes: MoveMode, MoveOperation, SelectionType

Public constructors

new QTextCursornewConstructor QTextCursor::QTextCursor()
new QTextCursornew(QTextDocument ptr document)Constructor QTextCursor::QTextCursor(QTextDocument *document)
new QTextCursornew(QTextFrame ptr frame)Constructor QTextCursor::QTextCursor(QTextFrame *frame)
new QTextCursornew(const QTextBlock block)Constructor QTextCursor::QTextCursor(const QTextBlock &block)
new QTextCursornew(const QTextCursor cursor)Constructor QTextCursor::QTextCursor(const QTextCursor &cursor)

Public methods

[const]bool!=(const QTextCursor rhs)Method bool QTextCursor::operator!=(const QTextCursor &rhs)
[const]bool<(const QTextCursor rhs)Method bool QTextCursor::operator<(const QTextCursor &rhs)
[const]bool<=(const QTextCursor rhs)Method bool QTextCursor::operator<=(const QTextCursor &rhs)
[const]bool==(const QTextCursor rhs)Method bool QTextCursor::operator==(const QTextCursor &rhs)
[const]bool>(const QTextCursor rhs)Method bool QTextCursor::operator>(const QTextCursor &rhs)
[const]bool>=(const QTextCursor rhs)Method bool QTextCursor::operator>=(const QTextCursor &rhs)
void_assign(const QTextCursor other)Assigns another object to self
void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
[const]intanchorMethod int QTextCursor::anchor()
QTextCursorassign(const QTextCursor other)Method QTextCursor &QTextCursor::operator=(const QTextCursor &other)
[const]boolatBlockEndMethod bool QTextCursor::atBlockEnd()
[const]boolatBlockStartMethod bool QTextCursor::atBlockStart()
[const]boolatEndMethod bool QTextCursor::atEnd()
[const]boolatStartMethod bool QTextCursor::atStart()
voidbeginEditBlockMethod void QTextCursor::beginEditBlock()
[const]QTextBlockblockMethod QTextBlock QTextCursor::block()
[const]QTextCharFormatblockCharFormatMethod QTextCharFormat QTextCursor::blockCharFormat()
voidblockCharFormat=(const QTextCharFormat format)Method void QTextCursor::setBlockCharFormat(const QTextCharFormat &format)
[const]QTextBlockFormatblockFormatMethod QTextBlockFormat QTextCursor::blockFormat()
voidblockFormat=(const QTextBlockFormat format)Method void QTextCursor::setBlockFormat(const QTextBlockFormat &format)
[const]intblockNumberMethod int QTextCursor::blockNumber()
[const]QTextCharFormatcharFormatMethod QTextCharFormat QTextCursor::charFormat()
voidcharFormat=(const QTextCharFormat format)Method void QTextCursor::setCharFormat(const QTextCharFormat &format)
voidclearSelectionMethod void QTextCursor::clearSelection()
[const]intcolumnNumberMethod int QTextCursor::columnNumber()
QTextList ptrcreateList(const QTextListFormat format)Method QTextList *QTextCursor::createList(const QTextListFormat &format)
QTextList ptrcreateList(const QTextListFormat_Style style)Method QTextList *QTextCursor::createList(QTextListFormat::Style style)
[const]QTextFrame ptrcurrentFrameMethod QTextFrame *QTextCursor::currentFrame()
[const]QTextList ptrcurrentListMethod QTextList *QTextCursor::currentList()
[const]QTextTable ptrcurrentTableMethod QTextTable *QTextCursor::currentTable()
voiddeleteCharMethod void QTextCursor::deleteChar()
voiddeletePreviousCharMethod void QTextCursor::deletePreviousChar()
[const]QTextDocument ptrdocumentMethod QTextDocument *QTextCursor::document()
[const]new QTextCursor ptrdupCreates a copy of self
voidendEditBlockMethod void QTextCursor::endEditBlock()
[const]boolhasComplexSelectionMethod bool QTextCursor::hasComplexSelection()
[const]boolhasSelectionMethod bool QTextCursor::hasSelection()
voidinsertBlockMethod void QTextCursor::insertBlock()
voidinsertBlock(const QTextBlockFormat format)Method void QTextCursor::insertBlock(const QTextBlockFormat &format)
voidinsertBlock(const QTextBlockFormat format,
const QTextCharFormat charFormat)
Method void QTextCursor::insertBlock(const QTextBlockFormat &format, const QTextCharFormat &charFormat)
voidinsertFragment(const QTextDocumentFragment fragment)Method void QTextCursor::insertFragment(const QTextDocumentFragment &fragment)
QTextFrame ptrinsertFrame(const QTextFrameFormat format)Method QTextFrame *QTextCursor::insertFrame(const QTextFrameFormat &format)
voidinsertHtml(string html)Method void QTextCursor::insertHtml(const QString &html)
voidinsertImage(const QTextImageFormat format,
const QTextFrameFormat_Position alignment)
Method void QTextCursor::insertImage(const QTextImageFormat &format, QTextFrameFormat::Position alignment)
voidinsertImage(const QTextImageFormat format)Method void QTextCursor::insertImage(const QTextImageFormat &format)
voidinsertImage(string name)Method void QTextCursor::insertImage(const QString &name)
voidinsertImage(const QImage image,
string name = QString())
Method void QTextCursor::insertImage(const QImage &image, const QString &name)
QTextList ptrinsertList(const QTextListFormat format)Method QTextList *QTextCursor::insertList(const QTextListFormat &format)
QTextList ptrinsertList(const QTextListFormat_Style style)Method QTextList *QTextCursor::insertList(QTextListFormat::Style style)
QTextTable ptrinsertTable(int rows,
int cols,
const QTextTableFormat format)
Method QTextTable *QTextCursor::insertTable(int rows, int cols, const QTextTableFormat &format)
QTextTable ptrinsertTable(int rows,
int cols)
Method QTextTable *QTextCursor::insertTable(int rows, int cols)
voidinsertText(string text)Method void QTextCursor::insertText(const QString &text)
voidinsertText(string text,
const QTextCharFormat format)
Method void QTextCursor::insertText(const QString &text, const QTextCharFormat &format)
[const]boolisCopyOf?(const QTextCursor other)Method bool QTextCursor::isCopyOf(const QTextCursor &other)
[const]boolisNull?Method bool QTextCursor::isNull()
voidjoinPreviousEditBlockMethod void QTextCursor::joinPreviousEditBlock()
voidmergeBlockCharFormat(const QTextCharFormat modifier)Method void QTextCursor::mergeBlockCharFormat(const QTextCharFormat &modifier)
voidmergeBlockFormat(const QTextBlockFormat modifier)Method void QTextCursor::mergeBlockFormat(const QTextBlockFormat &modifier)
voidmergeCharFormat(const QTextCharFormat modifier)Method void QTextCursor::mergeCharFormat(const QTextCharFormat &modifier)
boolmovePosition(const QTextCursor_MoveOperation op,
const QTextCursor_MoveMode arg2 = QTextCursor::MoveAnchor,
int n = 1)
Method bool QTextCursor::movePosition(QTextCursor::MoveOperation op, QTextCursor::MoveMode, int n)
[const]intpositionMethod int QTextCursor::position()
voidremoveSelectedTextMethod void QTextCursor::removeSelectedText()
voidselect(const QTextCursor_SelectionType selection)Method void QTextCursor::select(QTextCursor::SelectionType selection)
[const]voidselectedTableCells(int ptr firstRow,
int ptr numRows,
int ptr firstColumn,
int ptr numColumns)
Method void QTextCursor::selectedTableCells(int *firstRow, int *numRows, int *firstColumn, int *numColumns)
[const]stringselectedTextMethod QString QTextCursor::selectedText()
[const]QTextDocumentFragmentselectionMethod QTextDocumentFragment QTextCursor::selection()
[const]intselectionEndMethod int QTextCursor::selectionEnd()
[const]intselectionStartMethod int QTextCursor::selectionStart()
voidsetBlockCharFormat(const QTextCharFormat format)Method void QTextCursor::setBlockCharFormat(const QTextCharFormat &format)
voidsetBlockFormat(const QTextBlockFormat format)Method void QTextCursor::setBlockFormat(const QTextBlockFormat &format)
voidsetCharFormat(const QTextCharFormat format)Method void QTextCursor::setCharFormat(const QTextCharFormat &format)
voidsetPosition(int pos,
const QTextCursor_MoveMode mode = QTextCursor::MoveAnchor)
Method void QTextCursor::setPosition(int pos, QTextCursor::MoveMode mode)
voidsetVisualNavigation(bool b)Method void QTextCursor::setVisualNavigation(bool b)
[const]boolvisualNavigationMethod bool QTextCursor::visualNavigation()
voidvisualNavigation=(bool b)Method void QTextCursor::setVisualNavigation(bool b)

Public static methods and constants

[static,const]new QTextCursor_SelectionType ptrBlockUnderCursorEnum constant QTextCursor::BlockUnderCursor
[static,const]new QTextCursor_SelectionType ptrDocumentEnum constant QTextCursor::Document
[static,const]new QTextCursor_MoveOperation ptrDownEnum constant QTextCursor::Down
[static,const]new QTextCursor_MoveOperation ptrEndEnum constant QTextCursor::End
[static,const]new QTextCursor_MoveOperation ptrEndOfBlockEnum constant QTextCursor::EndOfBlock
[static,const]new QTextCursor_MoveOperation ptrEndOfLineEnum constant QTextCursor::EndOfLine
[static,const]new QTextCursor_MoveOperation ptrEndOfWordEnum constant QTextCursor::EndOfWord
[static,const]new QTextCursor_MoveMode ptrKeepAnchorEnum constant QTextCursor::KeepAnchor
[static,const]new QTextCursor_MoveOperation ptrLeftEnum constant QTextCursor::Left
[static,const]new QTextCursor_SelectionType ptrLineUnderCursorEnum constant QTextCursor::LineUnderCursor
[static,const]new QTextCursor_MoveMode ptrMoveAnchorEnum constant QTextCursor::MoveAnchor
[static,const]new QTextCursor_MoveOperation ptrNextBlockEnum constant QTextCursor::NextBlock
[static,const]new QTextCursor_MoveOperation ptrNextCellEnum constant QTextCursor::NextCell
[static,const]new QTextCursor_MoveOperation ptrNextCharacterEnum constant QTextCursor::NextCharacter
[static,const]new QTextCursor_MoveOperation ptrNextRowEnum constant QTextCursor::NextRow
[static,const]new QTextCursor_MoveOperation ptrNextWordEnum constant QTextCursor::NextWord
[static,const]new QTextCursor_MoveOperation ptrNoMoveEnum constant QTextCursor::NoMove
[static,const]new QTextCursor_MoveOperation ptrPreviousBlockEnum constant QTextCursor::PreviousBlock
[static,const]new QTextCursor_MoveOperation ptrPreviousCellEnum constant QTextCursor::PreviousCell
[static,const]new QTextCursor_MoveOperation ptrPreviousCharacterEnum constant QTextCursor::PreviousCharacter
[static,const]new QTextCursor_MoveOperation ptrPreviousRowEnum constant QTextCursor::PreviousRow
[static,const]new QTextCursor_MoveOperation ptrPreviousWordEnum constant QTextCursor::PreviousWord
[static,const]new QTextCursor_MoveOperation ptrRightEnum constant QTextCursor::Right
[static,const]new QTextCursor_MoveOperation ptrStartEnum constant QTextCursor::Start
[static,const]new QTextCursor_MoveOperation ptrStartOfBlockEnum constant QTextCursor::StartOfBlock
[static,const]new QTextCursor_MoveOperation ptrStartOfLineEnum constant QTextCursor::StartOfLine
[static,const]new QTextCursor_MoveOperation ptrStartOfWordEnum constant QTextCursor::StartOfWord
[static,const]new QTextCursor_MoveOperation ptrUpEnum constant QTextCursor::Up
[static,const]new QTextCursor_MoveOperation ptrWordLeftEnum constant QTextCursor::WordLeft
[static,const]new QTextCursor_MoveOperation ptrWordRightEnum constant QTextCursor::WordRight
[static,const]new QTextCursor_SelectionType ptrWordUnderCursorEnum constant QTextCursor::WordUnderCursor

Deprecated methods (protected, public, static, non-static and constructors)

voidcreateUse of this method is deprecated. Use _create instead
voiddestroyUse of this method is deprecated. Use _destroy instead
[const]booldestroyed?Use of this method is deprecated. Use _destroyed? instead
[const]boolis_const_object?Use of this method is deprecated. Use _is_const_object? instead

Detailed description

[const] bool !=(const QTextCursor rhs)

Description: Method bool QTextCursor::operator!=(const QTextCursor &rhs)

[const] bool <(const QTextCursor rhs)

Description: Method bool QTextCursor::operator<(const QTextCursor &rhs)

[const] bool <=(const QTextCursor rhs)

Description: Method bool QTextCursor::operator<=(const QTextCursor &rhs)

[const] bool ==(const QTextCursor rhs)

Description: Method bool QTextCursor::operator==(const QTextCursor &rhs)

[const] bool >(const QTextCursor rhs)

Description: Method bool QTextCursor::operator>(const QTextCursor &rhs)

[const] bool >=(const QTextCursor rhs)

Description: Method bool QTextCursor::operator>=(const QTextCursor &rhs)

[static,const] new QTextCursor_SelectionType ptr BlockUnderCursor

Description: Enum constant QTextCursor::BlockUnderCursor

[static,const] new QTextCursor_SelectionType ptr Document

Description: Enum constant QTextCursor::Document

[static,const] new QTextCursor_MoveOperation ptr Down

Description: Enum constant QTextCursor::Down

[static,const] new QTextCursor_MoveOperation ptr End

Description: Enum constant QTextCursor::End

[static,const] new QTextCursor_MoveOperation ptr EndOfBlock

Description: Enum constant QTextCursor::EndOfBlock

[static,const] new QTextCursor_MoveOperation ptr EndOfLine

Description: Enum constant QTextCursor::EndOfLine

[static,const] new QTextCursor_MoveOperation ptr EndOfWord

Description: Enum constant QTextCursor::EndOfWord

[static,const] new QTextCursor_MoveMode ptr KeepAnchor

Description: Enum constant QTextCursor::KeepAnchor

[static,const] new QTextCursor_MoveOperation ptr Left

Description: Enum constant QTextCursor::Left

[static,const] new QTextCursor_SelectionType ptr LineUnderCursor

Description: Enum constant QTextCursor::LineUnderCursor

[static,const] new QTextCursor_MoveMode ptr MoveAnchor

Description: Enum constant QTextCursor::MoveAnchor

[static,const] new QTextCursor_MoveOperation ptr NextBlock

Description: Enum constant QTextCursor::NextBlock

[static,const] new QTextCursor_MoveOperation ptr NextCell

Description: Enum constant QTextCursor::NextCell

[static,const] new QTextCursor_MoveOperation ptr NextCharacter

Description: Enum constant QTextCursor::NextCharacter

[static,const] new QTextCursor_MoveOperation ptr NextRow

Description: Enum constant QTextCursor::NextRow

[static,const] new QTextCursor_MoveOperation ptr NextWord

Description: Enum constant QTextCursor::NextWord

[static,const] new QTextCursor_MoveOperation ptr NoMove

Description: Enum constant QTextCursor::NoMove

[static,const] new QTextCursor_MoveOperation ptr PreviousBlock

Description: Enum constant QTextCursor::PreviousBlock

[static,const] new QTextCursor_MoveOperation ptr PreviousCell

Description: Enum constant QTextCursor::PreviousCell

[static,const] new QTextCursor_MoveOperation ptr PreviousCharacter

Description: Enum constant QTextCursor::PreviousCharacter

[static,const] new QTextCursor_MoveOperation ptr PreviousRow

Description: Enum constant QTextCursor::PreviousRow

[static,const] new QTextCursor_MoveOperation ptr PreviousWord

Description: Enum constant QTextCursor::PreviousWord

[static,const] new QTextCursor_MoveOperation ptr Right

Description: Enum constant QTextCursor::Right

[static,const] new QTextCursor_MoveOperation ptr Start

Description: Enum constant QTextCursor::Start

[static,const] new QTextCursor_MoveOperation ptr StartOfBlock

Description: Enum constant QTextCursor::StartOfBlock

[static,const] new QTextCursor_MoveOperation ptr StartOfLine

Description: Enum constant QTextCursor::StartOfLine

[static,const] new QTextCursor_MoveOperation ptr StartOfWord

Description: Enum constant QTextCursor::StartOfWord

[static,const] new QTextCursor_MoveOperation ptr Up

Description: Enum constant QTextCursor::Up

[static,const] new QTextCursor_MoveOperation ptr WordLeft

Description: Enum constant QTextCursor::WordLeft

[static,const] new QTextCursor_MoveOperation ptr WordRight

Description: Enum constant QTextCursor::WordRight

[static,const] new QTextCursor_SelectionType ptr WordUnderCursor

Description: Enum constant QTextCursor::WordUnderCursor

void _assign(const QTextCursor other)

Description: Assigns another object to self

void _create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

void _destroy

Description: Explicitly destroys the object

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

[const] bool _destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

[const] bool _is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

[const] int anchor

Description: Method int QTextCursor::anchor()

QTextCursor assign(const QTextCursor other)

Description: Method QTextCursor &QTextCursor::operator=(const QTextCursor &other)

[const] bool atBlockEnd

Description: Method bool QTextCursor::atBlockEnd()

[const] bool atBlockStart

Description: Method bool QTextCursor::atBlockStart()

[const] bool atEnd

Description: Method bool QTextCursor::atEnd()

[const] bool atStart

Description: Method bool QTextCursor::atStart()

void beginEditBlock

Description: Method void QTextCursor::beginEditBlock()

[const] QTextBlock block

Description: Method QTextBlock QTextCursor::block()

[const] QTextCharFormat blockCharFormat

Description: Method QTextCharFormat QTextCursor::blockCharFormat()

Python specific notes:

The object exposes a readable attribute 'blockCharFormat'. This is the getter.

void blockCharFormat=(const QTextCharFormat format)

Description: Method void QTextCursor::setBlockCharFormat(const QTextCharFormat &format)

Python specific notes:

The object exposes a writable attribute 'blockCharFormat'. This is the setter.

[const] QTextBlockFormat blockFormat

Description: Method QTextBlockFormat QTextCursor::blockFormat()

Python specific notes:

The object exposes a readable attribute 'blockFormat'. This is the getter.

void blockFormat=(const QTextBlockFormat format)

Description: Method void QTextCursor::setBlockFormat(const QTextBlockFormat &format)

Python specific notes:

The object exposes a writable attribute 'blockFormat'. This is the setter.

[const] int blockNumber

Description: Method int QTextCursor::blockNumber()

[const] QTextCharFormat charFormat

Description: Method QTextCharFormat QTextCursor::charFormat()

Python specific notes:

The object exposes a readable attribute 'charFormat'. This is the getter.

void charFormat=(const QTextCharFormat format)

Description: Method void QTextCursor::setCharFormat(const QTextCharFormat &format)

Python specific notes:

The object exposes a writable attribute 'charFormat'. This is the setter.

void clearSelection

Description: Method void QTextCursor::clearSelection()

[const] int columnNumber

Description: Method int QTextCursor::columnNumber()

void create

Description: Ensures the C++ object is created

Use of this method is deprecated. Use _create instead

QTextList ptr createList(const QTextListFormat format)

Description: Method QTextList *QTextCursor::createList(const QTextListFormat &format)

QTextList ptr createList(const QTextListFormat_Style style)

Description: Method QTextList *QTextCursor::createList(QTextListFormat::Style style)

[const] QTextFrame ptr currentFrame

Description: Method QTextFrame *QTextCursor::currentFrame()

[const] QTextList ptr currentList

Description: Method QTextList *QTextCursor::currentList()

[const] QTextTable ptr currentTable

Description: Method QTextTable *QTextCursor::currentTable()

void deleteChar

Description: Method void QTextCursor::deleteChar()

void deletePreviousChar

Description: Method void QTextCursor::deletePreviousChar()

void destroy

Description: Explicitly destroys the object

Use of this method is deprecated. Use _destroy instead

[const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

Use of this method is deprecated. Use _destroyed? instead

[const] QTextDocument ptr document

Description: Method QTextDocument *QTextCursor::document()

[const] new QTextCursor ptr dup

Description: Creates a copy of self

void endEditBlock

Description: Method void QTextCursor::endEditBlock()

[const] bool hasComplexSelection

Description: Method bool QTextCursor::hasComplexSelection()

[const] bool hasSelection

Description: Method bool QTextCursor::hasSelection()

void insertBlock

Description: Method void QTextCursor::insertBlock()

void insertBlock(const QTextBlockFormat format)

Description: Method void QTextCursor::insertBlock(const QTextBlockFormat &format)

void insertBlock(const QTextBlockFormat format,const QTextCharFormat charFormat)

Description: Method void QTextCursor::insertBlock(const QTextBlockFormat &format, const QTextCharFormat &charFormat)

void insertFragment(const QTextDocumentFragment fragment)

Description: Method void QTextCursor::insertFragment(const QTextDocumentFragment &fragment)

QTextFrame ptr insertFrame(const QTextFrameFormat format)

Description: Method QTextFrame *QTextCursor::insertFrame(const QTextFrameFormat &format)

void insertHtml(string html)

Description: Method void QTextCursor::insertHtml(const QString &html)

void insertImage(const QTextImageFormat format,const QTextFrameFormat_Position alignment)

Description: Method void QTextCursor::insertImage(const QTextImageFormat &format, QTextFrameFormat::Position alignment)

void insertImage(const QTextImageFormat format)

Description: Method void QTextCursor::insertImage(const QTextImageFormat &format)

void insertImage(string name)

Description: Method void QTextCursor::insertImage(const QString &name)

void insertImage(const QImage image,string name = QString())

Description: Method void QTextCursor::insertImage(const QImage &image, const QString &name)

QTextList ptr insertList(const QTextListFormat format)

Description: Method QTextList *QTextCursor::insertList(const QTextListFormat &format)

QTextList ptr insertList(const QTextListFormat_Style style)

Description: Method QTextList *QTextCursor::insertList(QTextListFormat::Style style)

QTextTable ptr insertTable(int rows,int cols,const QTextTableFormat format)

Description: Method QTextTable *QTextCursor::insertTable(int rows, int cols, const QTextTableFormat &format)

QTextTable ptr insertTable(int rows,int cols)

Description: Method QTextTable *QTextCursor::insertTable(int rows, int cols)

void insertText(string text)

Description: Method void QTextCursor::insertText(const QString &text)

void insertText(string text,const QTextCharFormat format)

Description: Method void QTextCursor::insertText(const QString &text, const QTextCharFormat &format)

[const] bool isCopyOf?(const QTextCursor other)

Description: Method bool QTextCursor::isCopyOf(const QTextCursor &other)

[const] bool isNull?

Description: Method bool QTextCursor::isNull()

[const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

Use of this method is deprecated. Use _is_const_object? instead

void joinPreviousEditBlock

Description: Method void QTextCursor::joinPreviousEditBlock()

void mergeBlockCharFormat(const QTextCharFormat modifier)

Description: Method void QTextCursor::mergeBlockCharFormat(const QTextCharFormat &modifier)

void mergeBlockFormat(const QTextBlockFormat modifier)

Description: Method void QTextCursor::mergeBlockFormat(const QTextBlockFormat &modifier)

void mergeCharFormat(const QTextCharFormat modifier)

Description: Method void QTextCursor::mergeCharFormat(const QTextCharFormat &modifier)

bool movePosition(const QTextCursor_MoveOperation op,const QTextCursor_MoveMode arg2 = QTextCursor::MoveAnchor,int n = 1)

Description: Method bool QTextCursor::movePosition(QTextCursor::MoveOperation op, QTextCursor::MoveMode, int n)

[static] new QTextCursor new

Description: Constructor QTextCursor::QTextCursor()

This method creates an object of class QTextCursor.

Python specific notes:

This method is the default initializer of the object

[static] new QTextCursor new(QTextDocument ptr document)

Description: Constructor QTextCursor::QTextCursor(QTextDocument *document)

This method creates an object of class QTextCursor.

Python specific notes:

This method is the default initializer of the object

[static] new QTextCursor new(QTextFrame ptr frame)

Description: Constructor QTextCursor::QTextCursor(QTextFrame *frame)

This method creates an object of class QTextCursor.

Python specific notes:

This method is the default initializer of the object

[static] new QTextCursor new(const QTextBlock block)

Description: Constructor QTextCursor::QTextCursor(const QTextBlock &block)

This method creates an object of class QTextCursor.

Python specific notes:

This method is the default initializer of the object

[static] new QTextCursor new(const QTextCursor cursor)

Description: Constructor QTextCursor::QTextCursor(const QTextCursor &cursor)

This method creates an object of class QTextCursor.

Python specific notes:

This method is the default initializer of the object

[const] int position

Description: Method int QTextCursor::position()

Python specific notes:

The object exposes a readable attribute 'position'. This is the getter.

void removeSelectedText

Description: Method void QTextCursor::removeSelectedText()

void select(const QTextCursor_SelectionType selection)

Description: Method void QTextCursor::select(QTextCursor::SelectionType selection)

[const] void selectedTableCells(int ptr firstRow,int ptr numRows,int ptr firstColumn,int ptr numColumns)

Description: Method void QTextCursor::selectedTableCells(int *firstRow, int *numRows, int *firstColumn, int *numColumns)

[const] string selectedText

Description: Method QString QTextCursor::selectedText()

[const] QTextDocumentFragment selection

Description: Method QTextDocumentFragment QTextCursor::selection()

[const] int selectionEnd

Description: Method int QTextCursor::selectionEnd()

[const] int selectionStart

Description: Method int QTextCursor::selectionStart()

void setBlockCharFormat(const QTextCharFormat format)

Description: Method void QTextCursor::setBlockCharFormat(const QTextCharFormat &format)

Python specific notes:

The object exposes a writable attribute 'blockCharFormat'. This is the setter.

void setBlockFormat(const QTextBlockFormat format)

Description: Method void QTextCursor::setBlockFormat(const QTextBlockFormat &format)

Python specific notes:

The object exposes a writable attribute 'blockFormat'. This is the setter.

void setCharFormat(const QTextCharFormat format)

Description: Method void QTextCursor::setCharFormat(const QTextCharFormat &format)

Python specific notes:

The object exposes a writable attribute 'charFormat'. This is the setter.

void setPosition(int pos,const QTextCursor_MoveMode mode = QTextCursor::MoveAnchor)

Description: Method void QTextCursor::setPosition(int pos, QTextCursor::MoveMode mode)

void setVisualNavigation(bool b)

Description: Method void QTextCursor::setVisualNavigation(bool b)

Python specific notes:

The object exposes a writable attribute 'visualNavigation'. This is the setter.

[const] bool visualNavigation

Description: Method bool QTextCursor::visualNavigation()

Python specific notes:

The object exposes a readable attribute 'visualNavigation'. This is the getter.

void visualNavigation=(bool b)

Description: Method void QTextCursor::setVisualNavigation(bool b)

Python specific notes:

The object exposes a writable attribute 'visualNavigation'. This is the setter.