Problem in using QtQuick.XmlListModel 2.0



  • Hi All,

    I am using Qt QML and I am facing issues in using QtQuick.XmlListModel 2.0 library .
    I am able read XML files while am launching application from Qt Creator ,but application fails to open if I am trying to run the file from file-system after including the dependent dlls.

    If I remove import statement for QtQuick.XmlListModel 2.0. Application runs fine from file system as well.

    Can some one please point out what am I missing or doing wrong?? If there is any dependency for using xml List model ?

    --



  • I have the same problem. Any solutions would be helpful. Following is more info:
    I am using QML with Qt 5.3. I have also tried deploying the code with Qt 5.4 and using the tool they have. I am trying to deploy for Windows 7. I have copied the relevant dlls into the folder containing my exe. This includes the XmlListModel plugin (and it's qmldir and plugins.qmltypes).

    When I run the application in an environment that does not have Qt installed, I get the following error:
    QQmlApplicationEngine failed to load component qrc:/content/main.qml:4 plugin cannot be loaded for module "QtQuick.XmlListModel": Cannot load library C:/Users/Me/Desktop/dist/QtQuick/XmlListModel/qmlxmllistmodelplugin.dll: The specified module could not be found.

    That file is in the location specified. I have not had any luck finding an answer on the forums so far.



  • Hi,

    In my case I found that there were some more relevant dlls and other dependencies which were required for xml.

    Either you can try to use tools like dependency walker to find the dependencies. you manually identify the relevant dependencies.

    What you can try is try to put your exe in bin folder C:\Qt\Qt5.4.0\Tools\QtCreator\bin with the other dependencies( files you have been referring etc)..

    Your exe should run just fine form here.. n then your job is to identify from here and put all the relevant xml components to your package.



  • Thanks for the info. I have found that Dependency Walker does not identify all of the dlls needed for my application. We were able to rerun the Qt 5.4 deploy tool with different arguments. It then included all of the correct dlls and the application runs outside of the development environment. The most notable dll is Qt5XmlPatterns.dll, which Dependency Walker did not identify.



  • @SelinaKyle27 I am in trouble too!put the Qt5XmlPatterns.dll into the dir of exe, and succesed. thanks SelinaKyle27


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.