java.lang.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 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
static QTextDocumentFragment
fromHtml
(String html, QTextDocument resourceProvider) static QTextDocumentFragment
fromPlainText
(String plainText) final boolean
isEmpty()
final String
toHtml()
Overloaded function fortoHtml(io.qt.core.QByteArray)
withencoding = new io.qt.core.QByteArray()
.final String
toHtml
(byte [] encoding) Overloaded function fortoHtml(io.qt.core.QByteArray)
.final String
toHtml
(QByteArray encoding) 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
- Parameters:
encoding
-- Returns:
- Since:
- This function was introduced in Qt 4.2.
-
toPlainText
- Returns:
-
fromHtml
- Parameters:
html
-- Returns:
-
fromHtml
- Parameters:
html
-resourceProvider
-- Returns:
- Since:
- This function was introduced in Qt 4.2.
-
fromPlainText
- Parameters:
plainText
-- Returns:
-
clone
Creates and returns a copy of this object.
See
QTextDocumentFragment::
QTextDocumentFragment(QTextDocumentFragment) -
toHtml
Overloaded function for
toHtml(io.qt.core.QByteArray)
withencoding = new io.qt.core.QByteArray()
. -
toHtml
Overloaded function for
toHtml(io.qt.core.QByteArray)
.
-