![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qtextdocument_p.h>
Public Types | |
enum | ExportMode { ExportEntireDocument , ExportFragment } |
Public Member Functions | |
QTextHtmlExporter (const QTextDocument *_doc) | |
QString | toHtml (ExportMode mode=ExportEntireDocument) |
Returns the document in HTML format. | |
Definition at line 372 of file qtextdocument_p.h.
Enumerator | |
---|---|
ExportEntireDocument | |
ExportFragment |
Definition at line 377 of file qtextdocument_p.h.
QTextHtmlExporter::QTextHtmlExporter | ( | const QTextDocument * | _doc | ) |
Definition at line 2388 of file qtextdocument.cpp.
QString QTextHtmlExporter::toHtml | ( | ExportMode | mode = ExportEntireDocument | ) |
Returns the document in HTML format.
The conversion may not be perfect, especially for complex documents, due to the limitations of HTML.
Definition at line 2405 of file qtextdocument.cpp.
References ExportEntireDocument, and ExportFragment.