java.lang.Object
io.qt.internal.NativeUtility.Object
io.qt.QtObject
io.qt.gui.QTextDocumentFragment
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Represents a piece of formatted text from a QTextDocument
Java wrapper for Qt's class QTextDocumentFragment
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQTextDocumentFragment
(QTextCursor range) QTextDocumentFragment
(QTextDocument document) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionclone()
static QTextDocumentFragment
Overloaded function forfromHtml(java.lang.String, io.qt.gui.QTextDocument)
withresourceProvider = null
.static QTextDocumentFragment
fromHtml
(String html, QTextDocument resourceProvider) static QTextDocumentFragment
fromPlainText
(String plainText) final boolean
isEmpty()
final String
toHtml()
final String
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QTextDocumentFragment
public QTextDocumentFragment() -
QTextDocumentFragment
-
QTextDocumentFragment
-
QTextDocumentFragment
-
QTextDocumentFragment
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
isEmpty
-
toHtml
-
toPlainText
-
fromHtml
Overloaded function for
fromHtml(java.lang.String, io.qt.gui.QTextDocument)
withresourceProvider = null
. -
fromHtml
-
fromPlainText
-
clone
-