[SOLVED] how to use QTextEdit alignment
-
I have a QTextEdit widget and what I want is , when I append text , I want the 1st word to be
left aligned and the 2nd word to be right aligned .
Like so : "word1 word2" where word2 is aligned to the right edge of the text box .Anyone know a way to do this ; i have tried several things and it is not working out .
-
What i did is create an html string using the html tags
<table> , <tr> , <td align='right'> and then textBox->setHtml(html);It works but if anyone has another solution , i would be interested .