How to implement a customized Text Line in QTextDocument



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.