It's a known limitation. QTextEdit only supports a limited subset of HTML and CSS. It was meant to be a rich text editor, and not a full HTML/CSS rendering engine. Please see http://doc.trolltech.com/4.4/richtext-html-subset.html
However, it does support padding and borders. Maybe if you post your HTML string we can see what is wrong.
Bookmarks