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

Bad rowCount on QFileSystemModel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • 4.7.0
    • None
    • In Ubuntu 10.10, with the default Qt package (32 bits), using Qt Creator 2.0.1

    Description

      When using QFileSystemModel in a QTreeView, the model don't update itself when I ask manually the rowCount.
      The rowCount of root is ok, but the rowCount of its subdirectories isn't (0).
      If I force the update by clicking in the QTreeView to my directory, the rowCount is ok.

      A minimal code is attached.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            vincent.renaudineau Vincent Renaudineau
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes