Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.3.1
-
None
Description
When setting a html document on a QTextEdit that contains a table with a header and a colspan, the header influences the width of the first column in the table. A long text in the header will enlarge the first column in the table when % width is used.
Ex:
<table cellpadding="5" cellspacing="0" border="1" width="100%">
<tr>
<th colspan="2" align="left">Areallyreallyreallyreallylongname</th>
</tr>
<tr>
<td width="10%" align="left" valign="top">Cell 1_1</td>
<td width="90%" align="left">Cell 1_2</td>
</tr>
</table>
<table cellpadding="5" cellspacing="0" border="1" width="100%">
<tr>
<th colspan="2" align="left"><a name="Ashortname">Ashortname</a></th>
</tr>
<tr>
<td width="10%" align="left" valign="top">Cell 1_1</td>
<td width="90%" align="left">Cell 1_2</td>
</tr>
</table>
Morover, a colspanned cell should not impose any minimum width restrictions on
any column in the table when the wrapping mode
QTextOption::WrapAtWordBoundaryOrAnywhere is applied.