- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Represents a piece of formatted text from a QTextDocument
Java wrapper for Qt class QTextDocumentFragment
-
Constructor Summary
ConstructorDescriptionQTextDocumentFragment
(QTextCursor range) QTextDocumentFragment
(QTextDocument document) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
clone()
Creates and returns a copy of this object.static QTextDocumentFragment
Overloaded function forfromHtml(java.lang.String, io.qt.gui.QTextDocument)
withresourceProvider = null
.static QTextDocumentFragment
fromHtml
(String html, QTextDocument resourceProvider) static QTextDocumentFragment
fromMarkdown
(String markdown) Overloaded function forfromMarkdown(java.lang.String, io.qt.gui.QTextDocument.MarkdownFeatures)
withfeatures = new io.qt.gui.QTextDocument.MarkdownFeatures(20236)
.static QTextDocumentFragment
fromMarkdown
(String markdown, QTextDocument.MarkdownFeature ... features) Overloaded function forfromMarkdown(java.lang.String, io.qt.gui.QTextDocument.MarkdownFeatures)
.static QTextDocumentFragment
fromMarkdown
(String markdown, QTextDocument.MarkdownFeatures features) static QTextDocumentFragment
fromPlainText
(String plainText) final boolean
isEmpty()
final String
toHtml()
final String
Overloaded function fortoMarkdown(io.qt.gui.QTextDocument.MarkdownFeatures)
withfeatures = new io.qt.gui.QTextDocument.MarkdownFeatures(20236)
.final String
toMarkdown
(QTextDocument.MarkdownFeature ... features) Overloaded function fortoMarkdown(io.qt.gui.QTextDocument.MarkdownFeatures)
.final String
toMarkdown
(QTextDocument.MarkdownFeatures features) final String
final String
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QTextDocumentFragment
public QTextDocumentFragment() -
QTextDocumentFragment
-
QTextDocumentFragment
-
QTextDocumentFragment
-
-
Method Details
-
isEmpty
-
assign
-
toHtml
-
toMarkdown
See
QTextDocumentFragment::
toMarkdown(QTextDocument::MarkdownFeatures)const This function was introduced in Qt 6.4.
-
toPlainText
-
toRawText
See
QTextDocumentFragment::
toRawText()const This function was introduced in Qt 6.4.
-
fromHtml
-
fromMarkdown
public static QTextDocumentFragment fromMarkdown(String markdown, QTextDocument.MarkdownFeatures features) See
QTextDocumentFragment::
fromMarkdown(QString, QTextDocument::MarkdownFeatures) This function was introduced in Qt 6.4.
-
fromPlainText
-
clone
Creates and returns a copy of this object.
See
QTextDocumentFragment::
QTextDocumentFragment(QTextDocumentFragment) -
toMarkdown
Overloaded function for
toMarkdown(io.qt.gui.QTextDocument.MarkdownFeatures)
withfeatures = new io.qt.gui.QTextDocument.MarkdownFeatures(20236)
. -
toMarkdown
Overloaded function for
toMarkdown(io.qt.gui.QTextDocument.MarkdownFeatures)
. -
fromHtml
Overloaded function for
fromHtml(java.lang.String, io.qt.gui.QTextDocument)
withresourceProvider = null
. -
fromMarkdown
Overloaded function for
fromMarkdown(java.lang.String, io.qt.gui.QTextDocument.MarkdownFeatures)
withfeatures = new io.qt.gui.QTextDocument.MarkdownFeatures(20236)
. -
fromMarkdown
public static QTextDocumentFragment fromMarkdown(String markdown, QTextDocument.MarkdownFeature ... features) Overloaded function for
fromMarkdown(java.lang.String, io.qt.gui.QTextDocument.MarkdownFeatures)
.
-