Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. windeployqt and VectorImage
Forum Updated to NodeBB v4.3 + New Features

windeployqt and VectorImage

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 311 Views 1 Watching
  • 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.
  • M Offline
    M Offline
    MarNem
    wrote on last edited by
    #1

    Hi! I have an issue deploying the QML application.
    I have a file where I use VectorImage to display svg icon.
    Firstly, after adding

    import QtQuick.VectorImage
    

    I get a warning "QQuickitem was not found".
    The application builds, and runs fine though.

    Then I deploy
    "C:\Qt\6.8.1\mingw_64\bin\windeployqt.exe" --qmldir "C:/Qt/6.8.1/mingw_64/qml" myapp.exe

    After that I can't run the executable from the deployment folder. I noticed that myDeployemntFolder\qml\QtQuick\VectorImage directory is empty. I can copy the contents of that folder from qmldir manually, but then I will get problems when creating installer, because the installed application will give me error "Cannot load library myInstallationFolder\qml\QtQuick\VectorImage\qquickvectorimageplugin.dll: The specified module could not be found"

    When I try to deploy Qt's vectorimage example, i get the same issue after deployment: the VectorImage folder is empty.

    Any help is appreciated.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      The --qmldir shall point to the qml sources of your application in order to know what to deploy.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        The --qmldir shall point to the qml sources of your application in order to know what to deploy.

        M Offline
        M Offline
        MarNem
        wrote on last edited by
        #3

        @SGaist Thank you. I did as you said first for some time ago, when I tried msvc kit, and it didn't work, so I searched and found this confusing topic (https://forum.qt.io/topic/73340/windeployqt-and-qml ) and tried pointing to Qt's qmldir.
        Then I switched to mingw but continued pointing to Qt's qmldir.
        Anyway, your answer worked with mingw kit, and msvc turned to be impossible to run even from release folder before the deployment, but that's another story. Thank you very much!

        1 Reply Last reply
        0
        • M MarNem has marked this topic as solved on

        • Login

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