Results 1 to 13 of 13

Thread: Adding spell checking to lineedits, textedits, ...

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    Join Date
    Aug 2007
    Posts
    244
    Thanks
    42
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Adding spell checking to lineedits, textedits, ...

    Simply use SpellTextEdit instead of QTextEdit (remember to edit highlighter.h for setting your language). Just a little example:

    Qt Code:
    1. #include <QApplication>
    2. #include "spelltextedit.h"
    3.  
    4. int main(int argc, char *argv[])
    5. {
    6. QApplication app(argc, argv);
    7. SpellTextEdit *spellTextEdit = new SpellTextEdit;
    8. spellTextEdit->show();
    9. return app.exec();
    10. }
    To copy to clipboard, switch view to plain text mode 

    Attached are 2 files; use these instead of those in my previous posts;

    Bye
    Attached Files Attached Files
    Giuseppe CalÃ

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.