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

QTextTable doesn't respect layoutDirection()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.7.1, 5.15.14, 6.5.2
    • GUI: Text handling
    • None

      Create QTextEdit.

      Paste this html code to it:

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
      <html><head></head>
      <body dir="rtl">
        <table border="1">
          <tr>
            <td>ab cd</td>
            <td>ef gh</td>
          </tr>
          <tr>
            <td>ij kl</td>
            <td>mn op</td>
          </tr>
        </table>
      </body></html>
      

      The table cells are RTL, but the table itself is aligned to the right.

      I also tried applying dir="rtl" or style="direction: rtl" to the table tag, but it doesn't help.

        1. table-qt.png
          8 kB
          Orgad Shaneh
        2. table-chrome.png
          2 kB
          Orgad Shaneh
        3. test1.html
          0.3 kB
          Volker Dirr
        4. test2.html
          0.4 kB
          Volker Dirr
        5. test3.html
          0.3 kB
          Volker Dirr
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            orgads Orgad Shaneh
            Votes:
            7 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes