[Development] Problems with QmlEngine and importPath

kai.koehne at nokia.com kai.koehne at nokia.com
Tue Aug 28 10:22:38 CEST 2012


> -----Original Message-----
> From: development-bounces+kai.koehne=nokia.com at qt-project.org
> [mailto:development-bounces+kai.koehne=nokia.com at qt-project.org] On
> Behalf Of ext Wehmer, Matthias
> Sent: Tuesday, August 28, 2012 9:43 AM
> To: development at qt-project.org
> Subject: [Development] Problems with QmlEngine and importPath
> 
> Hi everybody,
> 
> 
> 
> we are currently suffering from the following problem: We fail to change the
> default directory for our custom qml plugins, that we have written in C++, and
> that we want to import (e.g. via import custom_plugin 1.0). That is the only
> directory our QML applications find the plugins is in the default import
> directory from the Qt5 directory. What is also strange is that the Qt Creator
> recognizes our plugin (i.e. the syntax highlighting works) in an arbitrary
> directory as long as the QML_IMPORT_PATH is set.


Try to set QML_IMPORT_TRACE in your environment to e.g. 1. If set, your application should print out where exactly it tries to locate stuff ...

Kai  Koehne



More information about the Development mailing list