Talespin_Kit
Talespin_Kit

Reputation: 21877

QML FolderListModel filter out the files and display only folders

How to make FolderListModel component to filter the files and contain only directories. I want to display only directories in a list view.

Upvotes: 3

Views: 1196

Answers (3)

TheBootroo
TheBootroo

Reputation: 7518

i faced the same issue, here is my workaround :

 nameFilter: ["//\\"];
 showDirs: true;

Upvotes: 1

ivanfeli
ivanfeli

Reputation: 230

Not sure about this one, but you can try:

         nameFilters: [ "" ]
         showDirs: true

Upvotes: 0

onion
onion

Reputation: 437

Looking at the documentation I'd say it's not possible to filter out files from the list.

Upvotes: 0

Related Questions