[Interest] Errors trying to import an external QML module to my project

Daniel França daniel.franca at gmail.com
Wed Sep 2 10:32:18 CEST 2015


Ohh silly me, Thanks Koehne.

It's working now, but Qt Creator still thinks the module doesn't exist,
mark the import in *red *and can't autocomplete*.*

Em qua, 2 de set de 2015 às 10:18, Koehne Kai <Kai.Koehne at theqtcompany.com>
escreveu:

>
>
> > -----Original Message-----
> > From: interest-bounces+kai.koehne=theqtcompany.com at qt-project.org
> > [mailto:interest-bounces+kai.koehne=theqtcompany.com at qt-project.org]
> > On Behalf Of Daniel Franca
> > Sent: Wednesday, September 02, 2015 10:04 AM
> > To: interest at 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150902/3f3e4a75/attachment.html>


More information about the Interest mailing list