[QBS] Importing QbsFunctions
dismine
dismine at gmail.com
Sun Apr 17 11:20:27 CEST 2016
Hi Stephan,
Note. I am not a qbs developer. But i think i met the same problem.
You get warning *import QbsFunctions not found* because it is not a part of
qbs. I found this file here
<https://github.com/qtproject/qt-labs-qbs/tree/master/qbs-resources/imports/QbsFunctions>
.
What you need is to create you own QbsFunctions folder. Like this
<path_to_functions>/imports/QbsFunctions/functions.js.
Also you need to set up a property
*qbsSearchPaths: "<path_to_functions>"*
See more about it in the documentation
<http://doc.qt.io/qbs/project-item.html>.
Hope it will help. And sorry if i am wrong.
Roman
On Sat, Apr 16, 2016 at 9:53 PM, Stephan Gatzka <stephan.gatzka at gmail.com>
wrote:
> Hi all,
>
> I just want to import QbsFunctions in my project, but qbs complains about
> it.
>
> That's just a small project:
>
> import qbs 1.0
> import QbsFunctions
>
> Project {
>
> }
>
> qbs 1.4.5 says:
> import QbsFunctions not found
>
> What am I doing wrong?
>
> Regards,
>
> Stephan
> _______________________________________________
> QBS mailing list
> QBS at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qbs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20160417/140da181/attachment.html>
More information about the Qbs
mailing list