[Interest] qmldir Internal Singleton File
furkanuzumcu at gmail.com
Fri May 3 23:51:51 CEST 2019
I tried it without the version numbers as well, and I get the same error.
Thanks for pointing to the code. I've been meaning to get my hands dirty, this seems like a great opportunity for it.
I appreciate the help.
On May 3, 2019, 17:42 -0400, Richard Weickelt <richard at weickelt.de>, wrote:
> > In the documentation for qmldir, there’s an option to make a QML document
> > internal to the module it’s defined in with the /internal/ keyword. But when
> > I use it like so
> > /Internal singleton MySingleton.qml 1.0 MySingleton.qml/
> > /
> > /
> > I get the following error:
> > > /invalid qmldir directive contains too many tokens./
> > /
> > /
> > Is this not supported or am I using it wrong?
> The parser is implemented in
> I would say that this is not possible at the moment. You can try to add this
> to the parser, it should be very simple. If you are lucky, the resolveType()
> functions in qqmlimport.cpp already handle internal composite singletons
> correctly. I have taken a look at it and am quite optimistic that this is
> the case. If not, you will have to fight your way through these functions in
> Note that the "internal" keyword belongs into directory listing qmldir files
> (those without version numbers), while the singleton keyword is only
> documented for module qmldir files (those with version numbers). However,
> singleton works in both variants, which is not documented. Maybe worth a bug
> report as well.
> This is not a qualified answer ;-)
> Best regards
> Interest mailing list
> Interest at qt-project.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest