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

VisualDataModel does not work with dynamically populated model

XMLWordPrintable

    • 16d08f97eaa7dd0469d7c9006546f86f1fd763f6

      When I use a QFileSystemModel with a VisualDataModel, it doesn't work beyond the first level in the tree.

      The initial view shows the top level '/' directory. When I click that I get the next directories. I click 'home' and get an empty screen.

      If I use a QDirModel instead it works. The difference is the QDirModel is not populated on demand, while QFilsSystemModel is.

      #if 0
      QAbstractItemModel *fsModel = new QDirModel(this);
      #else
      QFileSystemModel *fsModel = new QFileSystemModel(this);
      fsModel->setRootPath("/");
      #endif

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

            martjone Martin Jones (closed Nokia identity) (Inactive)
            steveire Stephen Kelly (Personal)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes