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

QStyledItemDelegate does not respect string's text direction

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.8.6, 5.3.1
    • Widgets: Itemviews
    • None
    • My system defaults to LTR.

      Attached test program creates a QListWidget and a QTextEdit, both filled with two lines of text. The first line should be rendered LTR, the second should be RTL, as confirmed by the output of QString::isRightToLeft().

      For QListWidget (above), this does not work, while it works correctly for QTextEdit (below).

      From what I see, QListWidget defaults to using QStyledItemDelegate, so the bug might be there (or in QCommonStyle, which is responsible for actually rendering?)

        1. snapshot-200.png
          snapshot-200.png
          9 kB
        2. main.cpp
          0.8 kB
        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
            cfeck Christoph Feck
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes