Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

problem with adding custom qml module

$
0
0
Hey, I am writing a QML-application, where a self written module needs to be imported and used. If I put my module in the locations provided in the QtQuick2ApplicationViewer viewer.engine()->importPathList(); everything works fine. Now I wanted to add the location where my module is located using the method viewer.addImportPath(”/Users/userName/my/location/to/module”); If I call this method with the correct location my module is still not found. Even if I look directly afterwards at the list provided with the import paths, my path seems not to be added. Am I missing a step or doing something wrong?

Viewing all articles
Browse latest Browse all 4972

Trending Articles