- 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
- Parameters:
range
-
-
QTextDocumentFragment
- Parameters:
rhs
-
-
QTextDocumentFragment
- Parameters:
document
-
-
-
Method Details
-
isEmpty
- Returns:
-
assign
- Parameters:
rhs
-
-
toHtml
- Returns:
-
toMarkdown
- Parameters:
features
-- Returns:
- Since:
- This function was introduced in Qt 6.4.
-
toPlainText
- Returns:
-
toRawText
- Returns:
- Since:
- This function was introduced in Qt 6.4.
-
fromHtml
- Parameters:
html
-resourceProvider
-- Returns:
-
fromMarkdown
public static QTextDocumentFragment fromMarkdown(String markdown, QTextDocument.MarkdownFeatures features) - Parameters:
markdown
-features
-- Returns:
- Since:
- This function was introduced in Qt 6.4.
-
fromPlainText
- Parameters:
plainText
-- Returns:
-
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)
.
-