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. Deploy QWidgets app with with QQuickWidgets and Qt6Quick dependencies
Forum Updated to NodeBB v4.3 + New Features

Deploy QWidgets app with with QQuickWidgets and Qt6Quick dependencies

Scheduled Pinned Locked Moved Solved Installation and Deployment
2 Posts 1 Posters 264 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.
  • C Offline
    C Offline
    Cute
    wrote on last edited by
    #1

    Hi,

    I'm trying to prepare an application built with Qt 6.7.2 - MSVC2019 for deployment with online installer, and my first step is to get it running independently (outside build folder).

    After running windeployqt and collecting all missing dll's, I have a running app, but the initial qml page is blank.
    I ran the app from command line after running DebugView, and this is what the error messages I have:

    qrc:/qt/qml/Qml/MainView.qml:7:1: module "QtQuick.Layouts" is not installed 	
    	import QtQuick.Layouts  	
    
    qrc:/qt/qml/Qml/MainView.qml:6:1: module "QtQuick.Controls.Material" is not installed 	
    	import QtQuick.Controls.Material  	
    
    qrc:/qt/qml/Qml/MainView.qml:5:1: module "QtQuick.Controls" is not installed 	
    	import QtQuick.Controls  	
    
    qrc:/qt/qml/Qml/MainView.qml: module "QtQml.WorkerScript" is not installed
    

    I expected the solution to this was to get the dll for these modules, so I copied these from C:\Qt\6.7.2\msvc2019_64\bin:

    • Qt6QmlWorkerScript.dll
    • Qt6QuickLayouts.dll
    • Qt6QuickControls2.dll
    • Qt6QuickControls2Material.dll

    to the root folder containing the other dll's and the exe file.

    I'm still facing the same issue and error messages. Any suggestions on what i did wrong or what I can do to fix this?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Cute
      wrote on last edited by
      #2

      Solved it :) I found the solution in the help text printed when running the windeployqt tool. Using the --qmldir argument added all I needed:

      If your application uses Qt Quick, run:
        windeployqt --qmldir <path-to-app-qml-files> <path-to-app-binary>
      
      1 Reply Last reply
      0
      • C Cute 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