Sophie

Sophie

distrib > Fedora > 20 > i386 > by-pkgid > a5a7eb88c07317410bfa551f55328458 > files > 3

kf5-sonnet-5.8.0-1.fc20.i686.rpm

# 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);
    }