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

QTreeView::moveCursor() strange behaviour

XMLWordPrintable

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

      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.

        For Gerrit Dashboard: QTBUG-52793
        # Subject Branch Project Status CR V

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

              Created:
              Updated:

                There are no open Gerrit changes