Currently, getting a list of files from an asset directory returns an empty list, even if there are files in there. For example, in a project called simpleapp with a Block component:
QFile file("/qml/simpleapp/Block.qml"); qDebug() << file.fileName() << "exists:" << file.exists(); QDir dir("/qml/simpleapp/"); qDebug() << "dir:" << dir1.entryList();
D/Qt (24476): "/qml/simpleapp/Block.qml" exists: true
D/Qt (24476): dir: ()
This breaks things, including the ability of QtDeclarative to see user-made components. For example, my main.qml in the project above cannot use the Block type, because QtDeclarative doesn't see it, even though it's there. (Since this breaks just about every QtQuick app there is, I think it should be given high priority.)
Log in to post a comment.