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. Text document with special inline characters
Forum Updated to NodeBB v4.3 + New Features

Text document with special inline characters

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 151 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.
  • A Offline
    A Offline
    alecs.onea
    wrote on last edited by
    #1

    Hello,

    I am trying to implement a paginated document editor (similar to MS Word or LibreOffice) but which allows me to insert certain inline "special" characters. Nothing fancy so far.

    I am using the at the moment a QGraphicsTextItem and I am able to insert any kind of character and unicode symbols, which is good. However, and this is my question, is it possible to manipulate the offset of individual characters? For example, I need to inline insert a glyph which is displaced (similar to how an accent might be displaced so that it fits on top of the previous character). But I want the character to be painted with a displacement correction sometimes, so that it fits nicely inline with the rest of the text, i.e. it is painted at the same height and within its own bounds, ignoring the displacement coded by design.

    Is it possible to achieve character paint offsets using QGraphicsTextItem or other equivalent Qt technologies?

    Best regards,
    Alexandru N. Onea

    1 Reply Last reply
    0

    • Login

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