Hi again,
I have managed to run the qt application now, after following the guides using a brute force method, quick and dirty way, by copying all the qml and dlls files/dir from my qt installation directory to the deployment dir.
https://wiki.qt.io/Deploy_an_Application_on_Windows
But i still don't know why windeployqt doesn't work as it should., so this looks like a problem of the windeployqt tool which failed to copy the necessary files/dirs to the deployment directory. And i don't think it is fun to do the clean up after as mentioned in the guides after putting everything there, as that is what windeployqt should be meant for.
@raven-worx said in Failed to deploy Qt application using windeployqt:
@pfnus said in Failed to deploy Qt application using windeployqt:
except additional errors
qrc:/main.qml:124:6: Type PermanentPanels unavailable
qrc:/panels/MyPanels.qml:13:5: Type MyControls unavailable
qrc:/panels/MyControls.qml:20:1: Type SidePanel unavailable
actually you should have this errors already before. I dont see why you shouldnt.
I have a lot of qml files inside different sub-directories, and i point --qmldir to thje top level qml dir, is that an issue?
Thats ok. windeployqt scans the folder recursively for all import statements.
When you now have files in the filesystem without having them in a qml module (with a qmldir file) they wont be picked up. Easiest would be to put them alos into the qrc.
The errors like Cannot install type 'HorizontalHeaderView' into protected module 'QtQuick.Controls' version '2' are a mystery to me. How do you get the error messages actually? You ran windeploy and then simply start the binary? Where do you see the error messages then?
I run the exe from cmd line like this; where D:\myapp\test-windeployqt contains all the deployed qt files/dirs:
D:\myapp\test-windeployqt\myapp.exe