Results 1 to 3 of 3

Thread: How to fetch files one by one from FolderListModel in QML?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to fetch files one by one from FolderListModel in QML?

    Look at the documentation of FolderListModel.get()
    The second argument is a string that tells get() which property of the entry you want.

    You are passing "undefined", since FolderListModel does not have a property "fileName" (in your log output) nor does string have a property "fileName" (in the next line).

    Cheers,
    _

  2. The following user says thank you to anda_skoa for this useful post:

    TheIndependentAquarius (7th March 2016)

Similar Threads

  1. qt fetch the url of a html
    By sRB in forum Qt Programming
    Replies: 3
    Last Post: 17th December 2014, 09:39
  2. How to fetch pixmap from a label
    By Charvi in forum Qt Programming
    Replies: 1
    Last Post: 29th June 2012, 09:16
  3. FolderListModel custom property
    By WeX.tmpvar in forum Qt Quick
    Replies: 0
    Last Post: 18th February 2012, 06:57
  4. Fetch default values from MySQL?
    By arimaniac in forum Qt Programming
    Replies: 1
    Last Post: 1st February 2011, 20:36
  5. QSQLITE Unable to fetch row in create
    By xgoan in forum Newbie
    Replies: 3
    Last Post: 18th October 2006, 14:39

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
  •  
Qt is a trademark of The Qt Company.