Hi

Since I'm not very expert in use QT I would to ask for some suggestion regarding a particular text format I would to show using QTextEdit control. My need is to show lines of text in a format like the following:


AAAA BBBB CCCCC

___aaa_____bbbb______cccc


Please, note that in this example characters '_' are used instead of spaces since I can not obtain such text format using the standard control of this forum editor.

As you can see the big text "words" have below some small text that must be "centered" with the connected big word over. I don't have a clear idea regarding how to obtain this fomat into QTextEdit. I tried to use html code (<span> and css) but the same html code working in a standar browser don't have the same result in the qt control, I suppose for some unsupported css tag. I could try using tables but how to make tables aligned in the same line? The problem is this format must act like standard text, than if I'll resize the editor window the text must to redistribute correctly.

Someone can point me in the right direction for make this result?

Thank you