Results 1 to 2 of 2

Thread: QTextBrowser does not display CSS as QwebView?

  1. #1
    Join Date
    Feb 2008
    Posts
    154
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Default QTextBrowser does not display CSS as QwebView?

    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
    Qt Code:
    1. <htm lang="ar"><HEAD><STYLE type="text/css">span.title { color: rgb(128, 0, 0) }
    2. span.text {font-family:"Traditional Arabic"; font-size:22px; font-weight:Bold}
    3. 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)}
    4. span.red {color : Red}
    5. hr.footnote {color : rgb(0, 0, 128)}
    6. span.footnote {font-family:"%1"; font-size:%2px; font-weight:%3}
    7. </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.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,014 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QTextBrowser does not display CSS as QwebView?

    QTextBrowser doesn't support full css.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QTextBrowser + QWebView = ?
    By alexandernst in forum Qt Programming
    Replies: 5
    Last Post: 1st August 2010, 02:12
  2. Can QTextBrowser display remote images?
    By golnaz in forum Newbie
    Replies: 1
    Last Post: 21st January 2009, 13:45
  3. link from QTextBrowser to QWebView
    By lamera in forum Qt Programming
    Replies: 4
    Last Post: 12th October 2008, 15:46
  4. How to display images in QTextBrowser ?
    By probine in forum Qt Programming
    Replies: 1
    Last Post: 12th January 2007, 08:58
  5. QTextBrowser display logo ?
    By probine in forum Qt Programming
    Replies: 1
    Last Post: 11th January 2007, 15:53

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.