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

Allow to turn off "auto-scrolling to selected item when widget is shown" feature in itemviews

    XMLWordPrintable

Details

    Description

      It seems that itemviews automatically scroll to the selected/current index in the view when the widget gets a show event. This can easily be seen by starting an application like the dirview example, open a few nodes so you get scrollbars. Then select one of the first items, scroll down so the item isn't visible anymore. Now if you minimize the application and restore it, the treeview will automatically have scrolled back to the selected item.

      The problem here is that the view then scrolls to the top of the page, instead of staying where it was before minimizing the application.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            mgoetz Markus Goetz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes