Go to file
openKylinBot 32fb511547 changed debian/source/format to native 2022-05-19 09:55:28 +08:00
LICENSES Import Upstream version 5.92.0 2022-05-19 09:55:27 +08:00
autotests Import Upstream version 5.92.0 2022-05-19 09:55:27 +08:00
cmake Import Upstream version 5.92.0 2022-05-19 09:55:27 +08:00
data cross 2022-05-19 09:55:28 +08:00
debian changed debian/source/format to native 2022-05-19 09:55:28 +08:00
docs Import Upstream version 5.92.0 2022-05-19 09:55:27 +08:00
examples Import Upstream version 5.92.0 2022-05-19 09:55:27 +08:00
po Import Upstream version 5.92.0 2022-05-19 09:55:27 +08:00
src Import Upstream version 5.92.0 2022-05-19 09:55:27 +08:00
tests Import Upstream version 5.92.0 2022-05-19 09:55:27 +08:00
.git-blame-ignore-revs Import Upstream version 5.92.0 2022-05-19 09:55:27 +08:00
.gitignore Import Upstream version 5.92.0 2022-05-19 09:55:27 +08:00
.gitlab-ci.yml Import Upstream version 5.92.0 2022-05-19 09:55:27 +08:00
.kde-ci.yml Import Upstream version 5.92.0 2022-05-19 09:55:27 +08:00
CMakeLists.txt Import Upstream version 5.92.0 2022-05-19 09:55:27 +08:00
KF5SonnetConfig.cmake.in Import Upstream version 5.92.0 2022-05-19 09:55:27 +08:00
README.md Import Upstream version 5.92.0 2022-05-19 09:55:27 +08:00
metainfo.yaml Import Upstream version 5.92.0 2022-05-19 09:55:27 +08:00

README.md

Sonnet

Multi-language spell checker

Introduction

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.

Example

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

MyFoo::MyFoo(QWidget *parent) : QWidget(parent)
{
    QTextEdit *textEdit = new QTextEdit(this);
    Sonnet::SpellCheckDecorator *decorator = new Sonnet::SpellCheckDecorator(textEdit);
}