Qt toolkit has built-in html editor - class QTextEdit. The problem is that the editor has no controls which allows you to format the text. For the reason our colleague Jiří Procházka created simple editor, class MRichTextEdit, which we can use in our application Deko the CRM.
Editor is freely available (except icons, Jiří relies on the environment support), you can download it here:
Usage is very simple, all screen shots were created using a few lines in a C++ application:
QDialog *dialog = new QDialog(this); MRichTextEdit *rte = new MRichTextEdit(dialog); QGridLayout *gl = new QGridLayout(dialog); gl-<addWidget(rte,0,0,1,1); dialog-<setWindowTitle(tr("Rich text editor")); dialog-<setMinimumWidth (400); dialog-<setMinimumHeight(400); dialog-<show();
Editor accepts plain text or html:
Returns test in different formats: