Re: QFileSystemModel and QML
Re: QFileSystemModel and QML
It works, but instead of showing the content of C:/Images it shows may laptop logical drives. Do you know why?
Re: QFileSystemModel and QML
Most likely the root path is not set correctly or you are using the model too early -- before it has a chance to update itself with new data.
1 Attachment(s)
Re: QFileSystemModel and QML
Hi. I found a way to use a C++ model for my ListView object and I started developing a little application that shows two different file browsers at the same time, but I'm getting a graphical error when I display the second file browser. In fact both the file browsers should be displayed inside a BorderImage, but the second one falls outside of it's BorderImage and I just cannot understand why. I'm adding the project to this post, can anybody tell me what's wrong with it?
Attachment 10428
Re: QFileSystemModel and QML
Sorry I found the problem by myself. I made confusion with the use of x and y within child items.