Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-1379

Setting a html doc on a QTextEdit with a colspanned td would affect the width of the first column in the table.

    XMLWordPrintable

Details

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes