Multi-language spell checker


Sonnet is a plugin-based spell checking library for Qt-based applications. It supports several different plugins, including HSpell, Enchant, ASpell and HUNSPELL.

It also supports automated language detection, based on a combination of different algorithms.

The simplest way to use Sonnet in your application is to use the SpellCheckDecorator class on your QTextEdit.


#include <QTextEdit>
#include <spellcheckdecorator.h>

MyFoo::MyFoo(QWidget *parent) : QWidget(parent)
    QTextEdit *textEdit = new QTextEdit(this);
    Sonnet::SpellCheckDecorator *decorator = new Sonnet::SpellCheckDecorator(textEdit);
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 23 2023 03:58:23 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.