The treatment of qbsSearchPath is inconsistent. Consider this Qbs project as an example:
In addition, there is a "qbs" directory, an "imports" subdirectory, and a file MyCppApplication.qbs within "imports":
Like in the example, I would expect that qbsSearchPath expansion is available within the Item where the path is defined, and in all items refered to from there. But this doesn't work. Instead, Qbs throws a message "Unexpected item type 'MyCppApplication'.
The attached archive provides a self-contained project showing this behavior (see NotWorking.qbs).