Hi and thanks for replying. Yesterday I’ve had some success with append() method – I’ve realized that it shouldn’t be that hard if I use underlying C++ for handling file names only – QML’s ListModel append() would work just fine if my underlying C++ class could provide it with proper file names and file count, which is really easy to implement – I’ll give it a go and post back.
What I do find funny is that my whole app blocks when I instantiate the fore-mentioned ListModel without ListElements. My current workaround is to put one ListElement to it and then clear() the list when it’s loaded, although this is quite dumb – do you have any idea why ListModel doesn’t work when there’s no elements in it at startup?
↧