Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Any example showing TextCharFormat::setProperty with UserProperty as StringList?
mvelanka last edited by
I wish to use QTextEdit widget to implement SpellCheck.
There I wish to attach a list of suggestions to wrongly spelt words.
I think I can
- prepare a StringList of such word suggestions
- prepare QTextFormat::UserProperty with a QVariant prepared from the above StringList
- prepare QTextCharFormat and setProperty as above property
- attach the prepared QTextCharFormat to the selected word as QTextCursor::setCharFormat(....)
I hope, I am in right direction.
Can anybody point me to any existing example that can help me in this?
Thanks in advance