pub unsafe fn convert_from_plain_text_2a(
    plain: impl CastInto<Ref<QString>>,
    mode: WhiteSpaceMode
) -> CppBox<QString>
Expand description

Converts the plain text string plain to an HTML-formatted paragraph while preserving most of its look.

Calls C++ function: QString Qt::convertFromPlainText(const QString& plain, Qt::WhiteSpaceMode mode = …).

C++ documentation:

Converts the plain text string plain to an HTML-formatted paragraph while preserving most of its look.

mode defines how whitespace is handled.

This function is defined in the <QTextDocument> header file.

See also QString::toHtmlEscaped() and mightBeRichText().