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

Unexpected cursor movement behavior in QTreeViews

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.8
    • Widgets: Itemviews
    • None

    Description

      This is is best shown with the Editable Tree Model example.

      When started, move to Description column (e.g. press cursor right 3 times).
      Insert a new column (^I C), move to the new column (cursor right), add a text (F2 "some text" Return). Now try to get back to the Description column. Intuitively, you press cursor left once: something unexpected and non intuitive happens: the parent of the row (in Title column) is selected. This behaviour is desirable for moving left in the first (Title) column, but not in the third column of a row. It should jump back to the left column (Description) on the first cursor left press, jump back to the first column (Title) on the second press, and only jump back to the parent on the third press. The key press sequence, that is necessary to navigate from an item in the third column to the item left of it is very unintuitive: left, right, right.

      In other words: as long as there are children to the left, pressing cursor left should navigate to them, and jump back to parent item only, when there aren't any children to the left anymore.

      Attachments

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

        Activity

          People

            mmutz Marc Mutz
            hpj Hans-Peter Jansen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes