Skip to main content
added 4 characters in body
Source Link
Taryn
  • 248.9k
  • 57
  • 374
  • 409

test escape()Test escape() function:

 QString plain = "#include <QtCore>" QString html = Qt::escape(plain); // html == "#include &lt;QtCore&gt;" 

and convertFromPlainText()convertFromPlainText() function:

QString Qt::convertFromPlainText ( const QString & plain, WhiteSpaceMode mode = WhiteSpacePre ) 

test escape() function:

 QString plain = "#include <QtCore>" QString html = Qt::escape(plain); // html == "#include &lt;QtCore&gt;" 

and convertFromPlainText() function:

QString Qt::convertFromPlainText ( const QString & plain, WhiteSpaceMode mode = WhiteSpacePre ) 

Test escape() function:

 QString plain = "#include <QtCore>" QString html = Qt::escape(plain); // html == "#include &lt;QtCore&gt;" 

and convertFromPlainText() function:

QString Qt::convertFromPlainText ( const QString & plain, WhiteSpaceMode mode = WhiteSpacePre ) 
added 152 characters in body
Source Link

test thisescape() function:

 QString plain = "#include <QtCore>" QString html = Qt::escape(plain); // html == "#include &lt;QtCore&gt;" 

and convertFromPlainText() function:

QString Qt::convertFromPlainText ( const QString & plain, WhiteSpaceMode mode = WhiteSpacePre ) 

test this:

 QString plain = "#include <QtCore>" QString html = Qt::escape(plain); // html == "#include &lt;QtCore&gt;" 

test escape() function:

 QString plain = "#include <QtCore>" QString html = Qt::escape(plain); // html == "#include &lt;QtCore&gt;" 

and convertFromPlainText() function:

QString Qt::convertFromPlainText ( const QString & plain, WhiteSpaceMode mode = WhiteSpacePre ) 
Source Link

test this:

 QString plain = "#include <QtCore>" QString html = Qt::escape(plain); // html == "#include &lt;QtCore&gt;"