java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QTextDocumentFragment
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QTextDocumentFragment extends QtObject implements Cloneable
Represents a piece of formatted text from a QTextDocument
Java wrapper for Qt class QTextDocumentFragment
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QTextDocumentFragment()
QTextDocumentFragment(QTextCursor range)
QTextDocumentFragment(QTextDocument document)
QTextDocumentFragment(QTextDocumentFragment rhs)
protected
QTextDocumentFragment(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description QTextDocumentFragment
clone()
static QTextDocumentFragment
fromHtml(String html)
static QTextDocumentFragment
fromHtml(String html, QTextDocument resourceProvider)
static QTextDocumentFragment
fromPlainText(String plainText)
boolean
isEmpty()
String
toHtml()
Overloaded function fortoHtml(io.qt.core.QByteArray)
withencoding = new io.qt.core.QByteArray()
.String
toHtml(QByteArray encoding)
String
toPlainText()
-
Constructor Details
-
QTextDocumentFragment
public QTextDocumentFragment() -
QTextDocumentFragment
-
QTextDocumentFragment
-
QTextDocumentFragment
-
QTextDocumentFragment
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
isEmpty
-
toHtml
Overloaded function for
toHtml(io.qt.core.QByteArray)
withencoding = new io.qt.core.QByteArray()
. -
toHtml
-
toPlainText
-
fromHtml
-
fromHtml
-
fromPlainText
-
clone
-