Function qt_gui::qt::might_be_rich_text
source · pub unsafe fn might_be_rich_text(arg1: impl CastInto<Ref<QString>>) -> bool
Expand description
Returns true
if the string text is likely to be rich text; otherwise returns false
.
Calls C++ function: bool Qt::mightBeRichText(const QString& arg1)
.
Returns true
if the string text is likely to be rich text; otherwise returns false
.
This function uses a fast and therefore simple heuristic. It mainly checks whether there is something that looks like a tag before the first line break. Although the result may be correct for common cases, there is no guarantee.
This function is defined in the <QTextDocument>
header file.