> -----Original Message----- > From: interest-bounces+kai.koehne=theqtcompany....@qt-project.org > [mailto:interest-bounces+kai.koehne=theqtcompany....@qt-project.org] > On Behalf Of Daniel Franca > Sent: Wednesday, September 02, 2015 10:04 AM > To: interest@qt-project.org > Subject: [Interest] Errors trying to import an external QML module to my > project > > Hi guys > > I'm trying to import the modules from papyros > <http://papyros.io/developer/index.html> (awesome components btw) to > my application. For that I cloned the repo, and then I added the modules > path to the QML2_IMPORT_PATH env var. > > The papyros is already with the qmldir files set correctly, so all I'd to do > is to > add the dirs to the QML2_IMPORT_PATH > > i.e: If the qmldir is inside /myhome/qml-material/modules/Material dir, > then I added the /myhome/qml-material/modules/Material to the > QML2_IMPORT_PATH var.
The import path should point to the directory that contains the module directory. That is, if your import is import Material 1.0 And there's a /myhome/qml-material/modules/Material/qmldir Then you should export QML2_IMPORT_PATH as QML2_IMPORT_PATH=/myhome/qml-material/modules Regards Kai _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest