Put all these files in your project src dir (see attachment in this and my previous post):
spelltextedit.h
spelltextedit.cpp
highlighter.h
highlighter.cpp
Aspell.h
Aspell.cpp
ThreadQueue.h
ThreadQueue.cpp
Now you can reuse the new widget SpellTextEdit like a normal QTextEdit, just "#include spelltextedit.h".
This code is different from that in the last version of "Online spell check editor"; this uses aspell instead of hspell; more: the language is hardcoded in highlighter.h so if needed look there.
Regards
Bookmarks