QML Module not found - and designer shows no GUI
I have an error when making a desktop Qt Quick 2 application.
@import QtMultimedia 5.0@
gives the error:
"QML Module not found:
for qmake projects use the QML_IMPORT_PATH to add import paths.
for qmlproject projects, use the importPaths property to add import paths."
When looking at designer it will show me nothing but this error message. Does anyone know how to fix this? none of these entries are in my path variable.
It's now QML2_IMPORT_PATH - so make sure the correct import path is included in that environment variable. If the multimedia module's QML import is installed to: c:\path\to\Qt\imports\com\digia\multimedia then your QML2_IMPORT_PATH should include something like: QML2_IMPORT_PATH=c:\path\to\Qt\imports
I'll give that a try the first chance I get.
where do i find and edit QML_IMPORT_PATH or QML2_IMPORT_PATH?, furthermore, there are 10 "imports" folders in sub directories of my qt install.
QML2_IMPORT_PATH is an environment variable. See http://support.microsoft.com/kb/310519 for information on how to set that in XP, for example.
OK so i just add it to my path. I was wondering if there was a special terminal or something that ran in Qt's background that held special variables for Qt. Thanks