Simply use SpellTextEdit instead of QTextEdit (remember to edit highlighter.h for setting your language). Just a little example:
#include <QApplication>
#include "spelltextedit.h"
int main(int argc, char *argv[])
{
SpellTextEdit *spellTextEdit = new SpellTextEdit;
spellTextEdit->show();
return app.exec();
}
#include <QApplication>
#include "spelltextedit.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
SpellTextEdit *spellTextEdit = new SpellTextEdit;
spellTextEdit->show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Attached are 2 files; use these instead of those in my previous posts;
Bye
Bookmarks