On 17 Aug 2015, at 09:23, Rutledge Shawn < shawn.rutle...@theqtcompany.com >
wrote:
> Have you tried FolderListModel?
Also a good suggestion which I didn't knew before. But in this case, I'm using
extended QFileSystemModel and QSortFilterProxyModel classes to provide
additional meta informatio
On 17 août 2015, at 09:23, Rutledge Shawn
wrote:
>
> On 13 Aug 2015, at 14:14, Julius Bullinger wrote:
>
>> Dear list,
>>
>> I'm having problems using QFileSystemModel in QML.
>
> Have you tried FolderListModel?
>
>
Hi guys,
There's a catch when using QFileSystemModel + DelegateModel.
On 13 Aug 2015, at 14:14, Julius Bullinger wrote:
> Dear list,
>
> I'm having problems using QFileSystemModel in QML.
Have you tried FolderListModel?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/inte
Curtis Mitch [mailto:mitch.cur...@theqtcompany.com] wrote on Thursday, 13.
August 2015 14:27 Uhr:
> I'm not sure about the rest of your question, but TreeView has a rootIndex
> property in 5.6:
> https://codereview.qt-project.org/#/c/121991/
While I don't quite understand the reasoning for ``s
Nikita Krupenko [mailto:krne...@gmail.com] wrote on Thursday, 13. August 2015
15:01 Uhr:
> Have you tried DelegateModel? It is like a proxy and allows you to set root
> index:
> http://doc.qt.io/qt-5/qml-qtqml-models-delegatemodel.html#rootIndex-prop
This seems like a decent solution, although
From: interest-bounces+mitch.curtis=theqtcompany@qt-project.org
on behalf of
Julius Bullinger
Sent: Thursday, 13 August 2015 14:14
To: interest@qt-project.org
Subject: [Interest] How to filter QFileSystemModel for use in QML
Dear list,
I'm h
Dear list,
I'm having problems using QFileSystemModel in QML.
Take the following example code:
// QQmlEngine* engine
QFileSystemModel* fsm = new QFileSystemModel(engine);
QModelIndex root = fsm->setRootPath("C:/Qt");
engine->rootContext()->setContextProperty("fileSystemModel", fs