Kakadu / lablqml

Interfacing Qt/QML with OCaml. Formely known as lablqt
http://kakadu.github.io/lablqml
GNU Lesser General Public License v2.1
159 stars 17 forks source link

QML importPath functions #22

Closed ghost closed 7 years ago

ghost commented 8 years ago

http://doc.qt.io/qt-5/qtqml-syntax-imports.html#qml-import-path

It would be nice to provide functions for adding paths for importing custom modules.

In the meantime a work-around is to set the QML2_IMPORT_PATH environment variable

Kakadu commented 8 years ago

Does the problem still exists when you load qml files through resource system?

ghost commented 8 years ago

Not really a problem, a feature. Adding paths means cleaner QML which is independent of the file structure of the project.

Kakadu commented 7 years ago

@orbifx Can we close this?

ghost commented 7 years ago

I think so. We have the function now. If there is a problem we can reopen or start new issue.