Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem in using QtQuick.XmlListModel 2.0

Problem in using QtQuick.XmlListModel 2.0

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 2.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zubair.khan
    wrote on last edited by
    #1

    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 ?

    --

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SelinaKyle27
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        zubair.khan
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SelinaKyle27
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            gbmm
            wrote on last edited by
            #5

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

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved