Hi all

I want to set the text in between rectangular..

code is

Qt Code:
  1. QString html,text;
  2. html = "<html><head><body><div style=width: 1000px; height:1500px; border: 1ex solid black>Text </div></body></html>";
  3.  
  4. /
  5. // Crate a QTextDocument with the defined HTML, CSS and the images
  6.  
  7. /*
  8.  * This shows how to bind the images, where the name for QUrl is the same name
  9.  * which you use in your HTML and CSS. In QPixmap just use the normal syntax of
  10.  * the Qt resource system.
  11.  */
  12.  
  13.  
  14. /*
  15.  * And now bind the css, which you have defined in the QString css.
  16.  */
  17. doc->addResource( QTextDocument::StyleSheetResource, QUrl( "format.css" ), css );
  18. doc->setHtml( html ); // binds the HTML to the QTextDocument
  19.  
  20. /*
  21.  * This QTextDocument can now set to any QTextBrowser.
  22.  */
  23. QTextBrowser *tb = new QTextBrowser( 0 );
  24. ui->textBrowser->setDocument( doc );
To copy to clipboard, switch view to plain text mode 

Here i don't the rectangle.


please help me

Thanks

Yuvaraj R