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

QTreeView::moveCursor() strange behaviour

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.5.1
    • Widgets: Itemviews
    • None

    Description

      Strange behaviour of QTreeView::moveCursor():
      1. If right arrow pressed moveCursor() returns wrong model index.
      Possible reason:
      QModelIndex next = current.sibling(current.row(), visualColumn);
      need to be replaced by
      QModelIndex next = current.sibling(current.row(), d->header->logicalIndex(visualColumn));

      2. After editor closed tree view starts editing of same index.
      Possible reason: QTreeViewPrivate::isItemHiddenOrDisabled(int i) in QTreeViewPrivate::below(int item) called by QTreeView::moveCursor() use isIndexEnabled(viewItems.at.index) and viewItems.at.index has always 0 in it column. In my case this column is fully disabled.

      Attachments

        Issue Links

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

          Activity

            People

              peppe Giuseppe D'Angelo
              kaliginsergey Sergey Kaligin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes