I am trying to create HTML table and then get cells width.
Creating table was done:
text="<table id=\"tbl1\" width=\"100%\" cellspacing=\"0\" class=\"tbl\">";
text+=("<tr><th colspan=\"2\" rowspan=\"2\">2</th><th>3</th><th>2</th></tr>");
text+=("<tr><th>3</th><th>8</th><th>9</th></tr>");
text+=("<tr><td>4</td><td>5</td><td>6</td></tr>");
text+=("<tr><td>7</td><td>8</td><td>9</td></tr>");
text+=("<tr><td>10</td><td>11</td><td>12</td><td>8</td><td>9</td></tr></table>");
QString text;
text="<table id=\"tbl1\" width=\"100%\" cellspacing=\"0\" class=\"tbl\">";
text+=("<tr><th colspan=\"2\" rowspan=\"2\">2</th><th>3</th><th>2</th></tr>");
text+=("<tr><th>3</th><th>8</th><th>9</th></tr>");
text+=("<tr><td>4</td><td>5</td><td>6</td></tr>");
text+=("<tr><td>7</td><td>8</td><td>9</td></tr>");
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?
Bookmarks