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. How to implement a customized Text Line in QTextDocument
QtWS25 Last Chance

How to implement a customized Text Line in QTextDocument

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 319 Views
  • 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
    andyzn
    wrote on last edited by
    #1

    I want to make a English-Chinese translation text editor by QTextDocument in which every line contains two "lines", the above is English, and below is Chinese.

    I tried QTextTable with transparent border. This is fine if I do no edit it. More specific, if we edit English and input a long Word at Line 1 which result to exceeding of line length, The word exceeded should be put to start of Line 3 which is also a English Line.

    BUT I can not find any way to implement this, any suggestion is appreciated!

    Thanks.

    PS:
    Layout is like this:

    Hello, World, this is my
    XX, XXX, XXXXX

    cat!
    XX

    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