QTextDocument* doc = new QTextDocument(0);
    QFont font = doc->defaultFont();
    font.setBold(false);
    font.setFamily("Arial");
    font.setPointSize(20);
    doc->setDefaultFont(font);
    //doc->setDefaultStyleSheet("body{font-family: Arial;font-weight:normal;}");
    doc->setHtml("<html><body><b>xD</b> lub <i>heeeheee</i></body></html>");

    QTextEdit* edit = new QTextEdit(0);
    edit->setGeometry(QRect(QPoint(200, 200), QSize(200, 200)));
    edit->setDocumentTitle("Peniski");
    edit->setDocument(doc);
    edit->show();

The entries are the properties of their respective owners.
Powered by Flask, SQLAlchemy, Pygments and Bootstrap.