Results 1 to 13 of 13

Thread: Getting HTML table cell width

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2013
    Posts
    23
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Getting HTML table cell width

    I am trying to create HTML table and then get cells width.
    Creating table was done:

    Qt Code:
    1. QString text;
    2. text="<table id=\"tbl1\" width=\"100%\" cellspacing=\"0\" class=\"tbl\">";
    3. text+=("<tr><th colspan=\"2\" rowspan=\"2\">2</th><th>3</th><th>2</th></tr>");
    4. text+=("<tr><th>3</th><th>8</th><th>9</th></tr>");
    5. text+=("<tr><td>4</td><td>5</td><td>6</td></tr>");
    6. text+=("<tr><td>7</td><td>8</td><td>9</td></tr>");
    7. text+=("<tr><td>10</td><td>11</td><td>12</td><td>8</td><td>9</td></tr></table>");
    To copy to clipboard, switch view to plain text mode 

    But I can not get cell width. How can I do that?
    Last edited by sipahi; 31st January 2013 at 13:41.

Similar Threads

  1. .csv format cell width
    By bostero22 in forum Qt Programming
    Replies: 1
    Last Post: 3rd September 2010, 23:06
  2. Replies: 1
    Last Post: 25th May 2010, 14:44
  3. QTreeView cell as table
    By ^NyAw^ in forum Qt Programming
    Replies: 2
    Last Post: 26th June 2009, 09:45
  4. Setting cell width in QHBoxLayout
    By EricF in forum Qt Programming
    Replies: 5
    Last Post: 13th December 2007, 15:42
  5. QTextImageFormat HTML not write <img width= height>
    By patrik08 in forum Qt Programming
    Replies: 9
    Last Post: 8th February 2007, 01:59

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.