As a beginner in Qbs/QML I want to get information about what instance that imported our module. For example, given this project:
.
├── a
│ └── imported.qbs
└── b
└── main.qbs
with a/imported.qbs like this:
Product{
name:{
console.info("I was imported from" + XXX);
return "imported"
}
}
and b/main.qbs like this:
import "../a/imported.qbs" as Imported
Imported {}
When I run main.qbs
, how could I get the instance that imported imported.qbs
(main.qbs
)?
Or in other words, what should I susbstitute for XXX to print main.qbs.