Invalid property assignment error in DLL but not QT creator
-
@Lord-Bytor said in Invalid property assignment error in DLL but not QT creator:
maybe in how Unity takes in DLLs
I just remembered: You Unity app's working directory is probably different from your DLL's location, so Qt can't find the QML modules. If you want to check, record the results of
QDir::currentPath()
from your DLL and from your small window example app.Anyway, call
QQmlEngine::addImportPath()
to tell Qt where to find the QML modules: https://stackoverflow.com/questions/35352930/qt5-qml-module-is-not-installed/49326965#49326965@JKSH Well, progress in that I'm getting a new error "Cannot load library D:\Dev\UnityProjects\QT experiment\Assets\Plugins\QtQuick.2\qtquick2plugin.dll: The specified module could not be found" that dll is present at that exact location though
Edit: Dependency walker shows it needs QT5Quick.dll, QT5Core etc... but those are all in its parent folder as produced by windeployqt