[Qt-interest] Problem to display html code in QTextEdit

Stephen Jackson spjackson42 at gmail.com
Mon Sep 7 20:41:41 CEST 2009


On Mon, Sep 7, 2009 at 10:08 AM, mourad wrote:
> Hello everybody, I've to print a facutre model. Thats why I've created a html code corresponding to the model and after I'm displying it in a QTextEdit. After that the user can print the facture. The is that the facture displayed is not corresponding to the html code especially the table borders. I want borders only for head et detail table and for the totals but no borders are displayed.
> I've used the functionnalities as the Qt documentation but it not working, can anybody tell me where I'm wrong and what I must to change to have the right display.

Although the border attribute of <tr> and <td> is supported by some
browsers, I do not think that this is strictly valid HTML. (HTML Tidy
reports 'Warning: <td[and tr]> proprietary attribute "border"'.)

You might have more success with QWebView (see for example qt/demos/browser).

However, I am not that clear about what the desired appearance is.

HTH
-- 
Stephen Jackson




More information about the Qt-interest-old mailing list