Qt Creator QML_IMPORT_PATH not working for MeeGo target



  • Hi,
    I have written a QDeclarativeExtensionPlugin and generated a .qmltypes file for it with the qmlplugindump tool to get auto-completion in the QML files using the plugin. I modified the QML_IMPORT_PATH variable in my pro file to point to the location of the plugin. This works fine and as expected for Desktop and Symbian targets, BUT it does not work for MeeGo Harmattan 1.2. This issue is only visible, when none of the other opened projects uses the import of the plugin and none of it have a working target (desktop or symbian) set, because once a working platform is used QtCreator correctly parses the type information of the qmltypes file.

    The following error is output when I hover over the import of my plugin in a QML file in QtCreator:
    @QML module not found

    Import paths: C:\QtSDK\Madde\sysroots\harmattan_sysroot_10.2011.34-1_slim\usr\lib\qt4\imports

    For qmake projects, use the QML_IMPORT_PATH to add import paths.@

    However, I did modify the QML_IMPORT_PATH and it works for other platforms. I also checked if QML_IMPORT_PATH is set correctly with the following command:
    @message(path: $$QMAKE_IMPORT_PATH)@
    and it IS set to the same path as for the other working platforms. But it seems that the QMAKE_IMPORT_PATH that I set is not used correctly for the meego target. I tested it on Windows and Linux, both with the same error with Qt Creator 2.4.1 and 2.5.2.

    Does anybody have an idea what could be wrong here?

    Cheers,
    Chris


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.