Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Any example showing TextCharFormat::setProperty with UserProperty as StringList?

Any example showing TextCharFormat::setProperty with UserProperty as StringList?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 388 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mvelanka
    wrote on last edited by
    #1

    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

    1. prepare a StringList of such word suggestions
    2. prepare QTextFormat::UserProperty with a QVariant prepared from the above StringList
    3. prepare QTextCharFormat and setProperty as above property
    4. 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

    raven-worxR 1 Reply Last reply
    0
    • M mvelanka

      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

      1. prepare a StringList of such word suggestions
      2. prepare QTextFormat::UserProperty with a QVariant prepared from the above StringList
      3. prepare QTextCharFormat and setProperty as above property
      4. 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

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @mvelanka
      you may want to see this

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved