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

QTreeView::scrollTo does not work correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Out of scope
    • Affects Version/s: 4.6.2
    • Fix Version/s: Some future release
    • Component/s: Widgets: Itemviews
    • Labels:
      None
    • Environment:
      Windows 7 x64? Microsoft Visual Studio 2008, Qt 4.6.2

      Description

      I have QTreeView with QFileSystemModel and button that do scrolling to user home directory (QDir::homePath()).
      I need to show user home directory at the center when button pressed.
      When I run my application and press the button the tree expands but item is not at the center. If I press the
      button again item shows at the center.
      But if I run my application, expands item, then collapse it and then press the button, then item will shows at center.
      Expected when I press the button first time item shows at the center.
      Test project attached.

        Attachments

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

          Activity

            People

            Assignee:
            laknoll Lars Knoll
            Reporter:
            udav Artem Udovichenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes