[Interest] QML Components And QRC Prefixes/Subdirectories

mark diener rpzrpzrpz at gmail.com
Wed May 13 15:16:59 CEST 2015


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 <rpzrpzrpz at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150513/46d2a763/attachment.html>


More information about the Interest mailing list