Hi every body,
I have html page with CSS that I want to display in a QTextBrowser but the CSS does not appear as in QWebView
html code
<htm lang="ar"><HEAD><STYLE type="text/css">span.title { color: rgb(128, 0, 0) }
span.text {font-family:"Traditional Arabic"; font-size:22px; font-weight:Bold}
div.matn { color:#5D6F95; border:solid 1px #2d2d2d; text-align:center; background:#ffffff; padding:50px 50px 50px 50px; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px;}div.matn{border:solid 6px #9D9BFF;-moz-border-radius: 26px;-webkit-border-radius: 26px;border-radius: 26px;}hr.matn {color : rgb(0, 0, 128)}
span.red {color : Red}
hr.footnote {color : rgb(0, 0, 128)}
span.footnote {font-family:"%1"; font-size:%2px; font-weight:%3}
</STYLE></HEAD><body dir= RTL><span class ="text"><div class="matn">[<span class="title">title 1</span>]<hr class="matn" /><br /><span class="title">[title 2]</span><br /></span></body></html>
<htm lang="ar"><HEAD><STYLE type="text/css">span.title { color: rgb(128, 0, 0) }
span.text {font-family:"Traditional Arabic"; font-size:22px; font-weight:Bold}
div.matn { color:#5D6F95; border:solid 1px #2d2d2d; text-align:center; background:#ffffff; padding:50px 50px 50px 50px; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px;}div.matn{border:solid 6px #9D9BFF;-moz-border-radius: 26px;-webkit-border-radius: 26px;border-radius: 26px;}hr.matn {color : rgb(0, 0, 128)}
span.red {color : Red}
hr.footnote {color : rgb(0, 0, 128)}
span.footnote {font-family:"%1"; font-size:%2px; font-weight:%3}
</STYLE></HEAD><body dir= RTL><span class ="text"><div class="matn">[<span class="title">title 1</span>]<hr class="matn" /><br /><span class="title">[title 2]</span><br /></span></body></html>
To copy to clipboard, switch view to plain text mode
there are a border around the text in the QWebView but in the QTextBrowser it does not appear, can anybody help?
Thak you very much.
Bookmarks