Results 1 to 2 of 2

Thread: QML FolderListModel & StackView

  1. #1
    Join Date
    May 2011
    Posts
    81
    Thanks
    6
    Thanked 5 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Question QML FolderListModel & StackView

    Qt Code:
    1. FolderListModel {
    2. id: cacheFolderModel
    3. folder: qsTr("file://%1").arg(appWin.myFilePath)
    4. nameFilters: ["*.che"]
    5. }
    To copy to clipboard, switch view to plain text mode 

    On Android & iOS, this works if the page with the FolderListModel is instantiated in my main.qml. However, if I load that page with a StackView, it breaks in iOS. The FolderListModel ends up showing ALL files, not following the 'nameFilters' parameter....

    Any ideas on why?

  2. #2
    Join Date
    May 2011
    Posts
    81
    Thanks
    6
    Thanked 5 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: QML FolderListModel & StackView

    Anyone have any idea?
    This is driving me nuts.

Similar Threads

  1. QML PropertyAnimation & StackView
    By scgrant327 in forum Qt Quick
    Replies: 8
    Last Post: 16th May 2016, 14:06
  2. How to fetch files one by one from FolderListModel in QML?
    By TheIndependentAquarius in forum Qt Quick
    Replies: 2
    Last Post: 7th March 2016, 05:45
  3. interaction StackView / ListView
    By RegMe in forum Qt Quick
    Replies: 11
    Last Post: 18th January 2016, 19:06
  4. Any example of StackView?
    By stereoMatching in forum Qt Quick
    Replies: 1
    Last Post: 16th December 2013, 08:07
  5. FolderListModel custom property
    By WeX.tmpvar in forum Qt Quick
    Replies: 0
    Last Post: 18th February 2012, 06:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.