@Matzomatzomatzo said:
Hi
if setAlignment sets the alignment for a paragraph of text
(see doc)
When you do
ui->QtexteditObj->setText
I think it replaces the paragraph with a new one since u replace all text
and the default alignment is left for that new paragraph
Just guessing. Did not test it :)