There was some banter related to this in a prior forum post, but nothing
definite:

https://forum.qt.io/topic/7721/qml-and-javascript-files-in-resource-qrc-how-to-import-js-in-qml/2

md

On Wed, May 13, 2015 at 6:14 AM, mark diener <rpzrpz...@gmail.com> wrote:

> Michael & List:
>
> That tip is along the right direction, but there is no treatment of
> QRC:/PREFIX in the Import
> Directory Imports
>
> A directory which contains QML documents may also be imported directly in
> a QML document. This provides a simple way for QML types to be segmented
> into reusable groupings: directories on the filesystem.
>
> The generic form of a directory import is as follows:
>
> import "<DirectoryPath>" [as <Qualifier>]
>
> So is the following ok? ->
>
> import "qrc:/prefix/readdir/qmlname.qml" as CustomButtonComponent
>
> Thanks,
>
> md
>
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to