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

If layoutDirection is RightToLeft and selectionMode is SelectRows: QTableView is not redrawn correctly when selection is changed.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.6.3, 4.7.0
    • 4.6.1
    • Widgets: Itemviews
    • None
    • observed in 4.6.1 on xp and vista 32bit and on linux amd64
    • 0f89d7ef7b5e961cfc6ee7960ad6bf07eff71691

    Description

      add the following lines to the tablemodel example:

      view1->setSelectionBehavior(QAbstractItemView::SelectRows);
      view1->setLayoutDirection(Qt::RightToLeft);

      Select a row in view1
      Click on another row: Only the clicked cell from that row is highlighted and one cell from the previously selected row is un-selected.
      You need to move the mouse over the old and new selection for everything to be re-drawn correctly.

      Attachments

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

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            shadyzay Shady Zayat
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes