QTextDocument

Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.
extern (C++)
class QTextDocument : QObject {}

Constructors

this
this(QObject parent)
Undocumented in source.
this
this(const(QString) text, QObject parent)
Undocumented in source.
this
this(QTextDocumentPrivate dd, QObject parent)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

FindFlags
alias FindFlags = QFlags!(FindFlag)
Undocumented in source.
MarkdownFeatures
alias MarkdownFeatures = QFlags!(MarkdownFeature)
Undocumented in source.

Enums

FindFlag
enum FindFlag
Undocumented in source.
MarkdownFeature
enum MarkdownFeature
Undocumented in source.
MetaInformation
enum MetaInformation
Undocumented in source.
ResourceType
enum ResourceType
Undocumented in source.
Stacks
enum Stacks
Undocumented in source.

Functions

addResource
void addResource(int type, const(QUrl) name, const(QVariant) resource)
Undocumented in source.
adjustSize
void adjustSize()
Undocumented in source.
allFormats
QVector!(QTextFormat) allFormats()
Undocumented in source.
appendUndoItem
void appendUndoItem(QAbstractUndoItem )
Undocumented in source.
availableRedoSteps
int availableRedoSteps()
Undocumented in source.
availableUndoSteps
int availableUndoSteps()
Undocumented in source.
baseUrl
QUrl baseUrl()
Undocumented in source.
baseUrlChanged
void baseUrlChanged(const(QUrl) url)
Undocumented in source.
begin
QTextBlock begin()
Undocumented in source.
blockCount
int blockCount()
Undocumented in source.
blockCountChanged
void blockCountChanged(int newBlockCount)
Undocumented in source.
characterAt
QChar characterAt(int pos)
Undocumented in source.
characterCount
int characterCount()
Undocumented in source.
clear
void clear()
Undocumented in source.
clearUndoRedoStacks
void clearUndoRedoStacks(Stacks historyToClear)
Undocumented in source.
clone
QTextDocument clone(QObject parent)
Undocumented in source.
contentsChange
void contentsChange(int from, int charsRemoved, int charsAdded)
Undocumented in source.
contentsChanged
void contentsChanged()
Undocumented in source.
createObject
QTextObject createObject(const(QTextFormat) f)
Undocumented in source.
cursorPositionChanged
void cursorPositionChanged(const(QTextCursor) cursor)
Undocumented in source.
defaultCursorMoveStyle
qt.core.namespace.CursorMoveStyle defaultCursorMoveStyle()
Undocumented in source.
defaultFont
QFont defaultFont()
Undocumented in source.
defaultStyleSheet
QString defaultStyleSheet()
Undocumented in source.
defaultTextOption
QTextOption defaultTextOption()
Undocumented in source.
docHandle
QTextDocumentPrivate* docHandle()
Undocumented in source.
documentLayout
QAbstractTextDocumentLayout documentLayout()
Undocumented in source.
documentLayoutChanged
void documentLayoutChanged()
Undocumented in source.
documentMargin
qreal documentMargin()
Undocumented in source.
drawContents
void drawContents(QPainter* painter, const(QRectF) rect)
Undocumented in source.
end
QTextBlock end()
Undocumented in source.
findBlock
QTextBlock findBlock(int pos)
Undocumented in source.
findBlockByLineNumber
QTextBlock findBlockByLineNumber(int blockNumber)
Undocumented in source.
findBlockByNumber
QTextBlock findBlockByNumber(int blockNumber)
Undocumented in source.
firstBlock
QTextBlock firstBlock()
Undocumented in source.
frameAt
QTextFrame frameAt(int pos)
Undocumented in source.
idealWidth
qreal idealWidth()
Undocumented in source.
indentWidth
qreal indentWidth()
Undocumented in source.
isEmpty
bool isEmpty()
Undocumented in source.
isModified
bool isModified()
Undocumented in source.
isRedoAvailable
bool isRedoAvailable()
Undocumented in source.
isUndoAvailable
bool isUndoAvailable()
Undocumented in source.
isUndoRedoEnabled
bool isUndoRedoEnabled()
Undocumented in source.
lastBlock
QTextBlock lastBlock()
Undocumented in source.
lineCount
int lineCount()
Undocumented in source.
loadResource
QVariant loadResource(int type, const(QUrl) name)
Undocumented in source.
markContentsDirty
void markContentsDirty(int from, int length)
Undocumented in source.
maximumBlockCount
int maximumBlockCount()
Undocumented in source.
metaInformation
QString metaInformation(MetaInformation info)
Undocumented in source.
modificationChanged
void modificationChanged(bool m)
Undocumented in source.
object
QTextObject object(int objectIndex)
Undocumented in source.
objectForFormat
QTextObject objectForFormat(const(QTextFormat) )
Undocumented in source.
pageCount
int pageCount()
Undocumented in source.
pageSize
QSizeF pageSize()
Undocumented in source.
print
void print(QPagedPaintDevice printer)
Undocumented in source.
redo
void redo(QTextCursor* cursor)
Undocumented in source.
redo
void redo()
Undocumented in source.
redoAvailable
void redoAvailable(bool )
Undocumented in source.
resource
QVariant resource(int type, const(QUrl) name)
Undocumented in source.
revision
int revision()
Undocumented in source.
rootFrame
QTextFrame rootFrame()
Undocumented in source.
setBaseUrl
void setBaseUrl(const(QUrl) url)
Undocumented in source.
setDefaultCursorMoveStyle
void setDefaultCursorMoveStyle(qt.core.namespace.CursorMoveStyle style)
Undocumented in source.
setDefaultFont
void setDefaultFont(const(QFont) font)
Undocumented in source.
setDefaultStyleSheet
void setDefaultStyleSheet(const(QString) sheet)
Undocumented in source.
setDefaultTextOption
void setDefaultTextOption(const(QTextOption) option)
Undocumented in source.
setDocumentLayout
void setDocumentLayout(QAbstractTextDocumentLayout layout)
Undocumented in source.
setDocumentMargin
void setDocumentMargin(qreal margin)
Undocumented in source.
setHtml
void setHtml(const(QString) html)
Undocumented in source.
setIndentWidth
void setIndentWidth(qreal width)
Undocumented in source.
setMarkdown
void setMarkdown(const(QString) markdown, MarkdownFeatures features)
Undocumented in source.
setMaximumBlockCount
void setMaximumBlockCount(int maximum)
Undocumented in source.
setMetaInformation
void setMetaInformation(MetaInformation info, const(QString) )
Undocumented in source.
setModified
void setModified(bool m)
Undocumented in source.
setPageSize
void setPageSize(const(QSizeF) size)
Undocumented in source.
setPlainText
void setPlainText(const(QString) text)
Undocumented in source.
setTextWidth
void setTextWidth(qreal width)
Undocumented in source.
setUndoRedoEnabled
void setUndoRedoEnabled(bool enable)
Undocumented in source.
setUseDesignMetrics
void setUseDesignMetrics(bool b)
Undocumented in source.
size
QSizeF size()
Undocumented in source.
textWidth
qreal textWidth()
Undocumented in source.
toHtml
QString toHtml(const(QByteArray) encoding)
Undocumented in source.
toMarkdown
QString toMarkdown(MarkdownFeatures features)
Undocumented in source.
toPlainText
QString toPlainText()
Undocumented in source.
toRawText
QString toRawText()
Undocumented in source.
undo
void undo(QTextCursor* cursor)
Undocumented in source.
undo
void undo()
Undocumented in source.
undoAvailable
void undoAvailable(bool )
Undocumented in source.
undoCommandAdded
void undoCommandAdded()
Undocumented in source.
useDesignMetrics
bool useDesignMetrics()
Undocumented in source.

Inherited Members

From QObject

~this
~this()
Undocumented in source.
QSignal
struct QSignal
Undocumented in source.
QSlot
struct QSlot
Undocumented in source.
QInvokable
struct QInvokable
Undocumented in source.
QScriptable
struct QScriptable
Undocumented in source.
Q_OBJECT
enum Q_OBJECT;
Undocumented in source.
Q_OBJECT_D
enum Q_OBJECT_D;
Undocumented in source.
Q_SIGNAL_IMPL_D
enum Q_SIGNAL_IMPL_D;
Undocumented in source.
event
bool event(QEvent event)
Undocumented in source.
eventFilter
bool eventFilter(QObject watched, QEvent event)
Undocumented in source.
tr
QString tr(const(char)* sourceText, const(char)* , int )
Undocumented in source. Be warned that the author may not have intended to support it.
objectName
QString objectName()
Undocumented in source.
setObjectName
void setObjectName(const(QString) name)
Undocumented in source.
setObjectName
void setObjectName(const(char)[] name)
Undocumented in source. Be warned that the author may not have intended to support it.
isWidgetType
bool isWidgetType()
Undocumented in source. Be warned that the author may not have intended to support it.
isWindowType
bool isWindowType()
Undocumented in source. Be warned that the author may not have intended to support it.
signalsBlocked
bool signalsBlocked()
Undocumented in source. Be warned that the author may not have intended to support it.
blockSignals
bool blockSignals(bool b)
Undocumented in source.
thread
QThread thread()
Undocumented in source.
moveToThread
void moveToThread(QThread thread)
Undocumented in source.
startTimer
int startTimer(int interval, qt.core.namespace.TimerType timerType)
Undocumented in source.
killTimer
void killTimer(int id)
Undocumented in source.
children
const(QObjectList) children()
Undocumented in source. Be warned that the author may not have intended to support it.
setParent
void setParent(QObject parent)
Undocumented in source.
installEventFilter
void installEventFilter(QObject filterObj)
Undocumented in source.
removeEventFilter
void removeEventFilter(QObject obj)
Undocumented in source.
connect
QMetaObject.Connection connect(QObject sender, char* signal, QObject receiver, char* member, ConnectionType )
Undocumented in source.
signal
template signal(string name, Params...)
Undocumented in source.
slot
template slot(string name, Params...)
Undocumented in source.
connect
QMetaObject.Connection connect(Signal sender, Dg dg, ConnectionType type)
Undocumented in source. Be warned that the author may not have intended to support it.
connect
QMetaObject.Connection connect(Signal sender, QObject context, Dg dg, ConnectionType type)
Undocumented in source. Be warned that the author may not have intended to support it.
connect
QMetaObject.Connection connect(Signal sender, Slot receiver, ConnectionType type)
Undocumented in source. Be warned that the author may not have intended to support it.
dumpObjectTree
void dumpObjectTree()
Undocumented in source.
dumpObjectInfo
void dumpObjectInfo()
Undocumented in source.
dumpObjectTree
void dumpObjectTree()
Undocumented in source.
dumpObjectInfo
void dumpObjectInfo()
Undocumented in source.
setProperty
bool setProperty(const(char)* name, const(QVariant) value)
Undocumented in source.
setProperty
bool setProperty(const(char)* name, T value)
Undocumented in source. Be warned that the author may not have intended to support it.
property
QVariant property(const(char)* name)
Undocumented in source.
dynamicPropertyNames
QList!(QByteArray) dynamicPropertyNames()
Undocumented in source.
registerUserData
uint registerUserData()
Undocumented in source.
setUserData
void setUserData(uint id, QObjectUserData data)
Undocumented in source.
userData
QObjectUserData userData(uint id)
Undocumented in source.
destroyed
void destroyed(QObject )
Undocumented in source.
objectNameChanged
void objectNameChanged(const(QString) objectName, QPrivateSignal )
Undocumented in source.
parent
QObject parent()
Undocumented in source. Be warned that the author may not have intended to support it.
inherits
bool inherits(const(char)* classname)
Undocumented in source. Be warned that the author may not have intended to support it.
deleteLater
void deleteLater()
Undocumented in source.
sender
QObject sender()
Undocumented in source.
senderSignalIndex
int senderSignalIndex()
Undocumented in source.
receivers
int receivers(const(char)* signal)
Undocumented in source.
isSignalConnected
bool isSignalConnected(const(QMetaMethod) signal)
Undocumented in source.
timerEvent
void timerEvent(QTimerEvent event)
Undocumented in source.
childEvent
void childEvent(QChildEvent event)
Undocumented in source.
customEvent
void customEvent(QEvent event)
Undocumented in source.
connectNotify
void connectNotify(const(QMetaMethod) signal)
Undocumented in source.
disconnectNotify
void disconnectNotify(const(QMetaMethod) signal)
Undocumented in source.
d_ptr
QScopedPointer!(QObjectData) d_ptr;
Undocumented in source.

Meta