-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spell check doesn't work #6
Comments
Does the example [1] work? Do you get any messages printed on the terminal? [1] https://github.com/manisandro/qtspell/tree/master/examples |
That worked! The issue was with how TextEditChecker is initialized. This line from readme file doesn't work:
needs to be replaced with:
|
I don't really think stack vs heap allocation makes a difference, unless your checker is going out of scope when stack allocated. This works fine:
|
That works too. So textEdit can't be a pointer? |
The relevant thing is not whether something is stack or heap allocated, but whether you correctly handle the life-time of an object. I.e.
If you not familiar with object lifetime and stack vs heap allocation, and specifically when dealing with QObject inherited classes, I recommend you read up on those topics. |
I'm using version 0.8.4 (a8f702b) on Debian and I can't get spell check to work. When I input words into a QTextEdit it doesn't highlight misspelled words. I have the needed dictionaries installed. Here is my code:
The text was updated successfully, but these errors were encountered: