Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Visual Studio Qt] How to set --qmldir option when building with windeployqt?
Forum Updated to NodeBB v4.3 + New Features

[Visual Studio Qt] How to set --qmldir option when building with windeployqt?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 1 Posters 401 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.
  • F Offline
    F Offline
    fromis_9
    wrote on last edited by
    #1

    Hi. I'm working in Visual Studio 2019 and Qt 6.2.2, with Qt extension in Visual Studio.
    I got some distribution problem.

    1.PNG
    As above, I set Run Deployment Tool to "Yes" (Sorry for language) in Visual Studio Project settings.

    2.PNG
    Above is build results. I could check windeployqt execution commands with options.

    4.PNG
    Above is result of running my application. It couldn.t find so many QtQuick modules, and I think the reason is that I wasn't define where my qml files are when executing windeployqt.

    So how can I set the '--qmldir' options in Visual Studio? thanks.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fromis_9
      wrote on last edited by
      #2

      I temporary solved this problem as setting "post-build event" to run windeployqt.exe like below. (The option is in "Build event" of Project Properties)
      5.PNG
      No need "Run Deployment Tool" option to "Yes", so turn it to "No".

      1 Reply Last reply
      1

      • Login

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