QTextCursor

Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.
extern (C++) extern (C++)
@Q_MOVABLE_TYPE
struct QTextCursor {}

Constructors

this
this(QTextDocument document)
Undocumented in source.
this
this(QTextDocumentPrivate* p, int pos)
Undocumented in source.
this
this(QTextCursorPrivate* d)
Undocumented in source.
this
this(QTextFrame frame)
Undocumented in source.
this
this(const(QTextBlock) block)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Enums

MoveMode
enum MoveMode
Undocumented in source.
MoveOperation
enum MoveOperation
Undocumented in source.
SelectionType
enum SelectionType
Undocumented in source.

Functions

anchor
int anchor()
Undocumented in source.
atBlockEnd
bool atBlockEnd()
Undocumented in source.
atBlockStart
bool atBlockStart()
Undocumented in source.
atEnd
bool atEnd()
Undocumented in source.
atStart
bool atStart()
Undocumented in source.
beginEditBlock
void beginEditBlock()
Undocumented in source.
block
QTextBlock block()
Undocumented in source.
blockCharFormat
QTextCharFormat blockCharFormat()
Undocumented in source.
blockFormat
QTextBlockFormat blockFormat()
Undocumented in source.
blockNumber
int blockNumber()
Undocumented in source.
charFormat
QTextCharFormat charFormat()
Undocumented in source.
clearSelection
void clearSelection()
Undocumented in source.
columnNumber
int columnNumber()
Undocumented in source.
createList
QTextList createList(const(QTextListFormat) format)
Undocumented in source.
createList
QTextList createList(QTextListFormat.Style style)
Undocumented in source.
currentFrame
QTextFrame currentFrame()
Undocumented in source.
currentList
QTextList currentList()
Undocumented in source.
currentTable
QTextTable currentTable()
Undocumented in source.
deleteChar
void deleteChar()
Undocumented in source.
deletePreviousChar
void deletePreviousChar()
Undocumented in source.
document
QTextDocument document()
Undocumented in source.
endEditBlock
void endEditBlock()
Undocumented in source.
hasComplexSelection
bool hasComplexSelection()
Undocumented in source.
hasSelection
bool hasSelection()
Undocumented in source.
insertBlock
void insertBlock()
Undocumented in source.
insertBlock
void insertBlock(const(QTextBlockFormat) format)
Undocumented in source.
insertBlock
void insertBlock(const(QTextBlockFormat) format, const(QTextCharFormat) charFormat)
Undocumented in source.
insertFragment
void insertFragment(const(QTextDocumentFragment) fragment)
Undocumented in source.
insertFrame
QTextFrame insertFrame(const(QTextFrameFormat) format)
Undocumented in source.
insertHtml
void insertHtml(const(QString) html)
Undocumented in source.
insertImage
void insertImage(const(QTextImageFormat) format, QTextFrameFormat.Position alignment)
Undocumented in source.
insertImage
void insertImage(const(QTextImageFormat) format)
Undocumented in source.
insertImage
void insertImage(const(QString) name)
Undocumented in source.
insertImage
void insertImage(const(QImage) image, const(QString) name)
Undocumented in source.
insertList
QTextList insertList(const(QTextListFormat) format)
Undocumented in source.
insertList
QTextList insertList(QTextListFormat.Style style)
Undocumented in source.
insertTable
QTextTable insertTable(int rows, int cols, const(QTextTableFormat) format)
Undocumented in source.
insertTable
QTextTable insertTable(int rows, int cols)
Undocumented in source.
insertText
void insertText(const(QString) text)
Undocumented in source.
insertText
void insertText(const(QString) text, const(QTextCharFormat) format)
Undocumented in source.
isCopyOf
bool isCopyOf(const(QTextCursor) other)
Undocumented in source.
isNull
bool isNull()
Undocumented in source.
joinPreviousEditBlock
void joinPreviousEditBlock()
Undocumented in source.
keepPositionOnInsert
bool keepPositionOnInsert()
Undocumented in source.
mergeBlockCharFormat
void mergeBlockCharFormat(const(QTextCharFormat) modifier)
Undocumented in source.
mergeBlockFormat
void mergeBlockFormat(const(QTextBlockFormat) modifier)
Undocumented in source.
mergeCharFormat
void mergeCharFormat(const(QTextCharFormat) modifier)
Undocumented in source.
movePosition
bool movePosition(MoveOperation op, MoveMode , int n)
Undocumented in source.
position
int position()
Undocumented in source.
positionInBlock
int positionInBlock()
Undocumented in source.
removeSelectedText
void removeSelectedText()
Undocumented in source.
select
void select(SelectionType selection)
Undocumented in source.
selectedTableCells
void selectedTableCells(int* firstRow, int* numRows, int* firstColumn, int* numColumns)
Undocumented in source.
selectedText
QString selectedText()
Undocumented in source.
selection
QTextDocumentFragment selection()
Undocumented in source.
selectionEnd
int selectionEnd()
Undocumented in source.
selectionStart
int selectionStart()
Undocumented in source.
setBlockCharFormat
void setBlockCharFormat(const(QTextCharFormat) format)
Undocumented in source.
setBlockFormat
void setBlockFormat(const(QTextBlockFormat) format)
Undocumented in source.
setCharFormat
void setCharFormat(const(QTextCharFormat) format)
Undocumented in source.
setKeepPositionOnInsert
void setKeepPositionOnInsert(bool b)
Undocumented in source.
setPosition
void setPosition(int pos, MoveMode mode)
Undocumented in source.
setVerticalMovementX
void setVerticalMovementX(int x)
Undocumented in source.
setVisualNavigation
void setVisualNavigation(bool b)
Undocumented in source.
verticalMovementX
int verticalMovementX()
Undocumented in source.
visualNavigation
bool visualNavigation()
Undocumented in source.

Meta