Introducing kqml: QML runtime with initialized KLocalizedContext
ivan tkachenko
me at ratijas.tk
Sat Jun 10 21:13:20 BST 2023
Introducing kqml: QML runtime with initialized KLocalizedContext
Useful for testing scratch files that either directly or via imported
modules assume that KLocalizedString domain has been set and
KLocalizedContext initialized, so they can rely on family of i18n*
functions being available in QML scope. In other words, for loading any
real-world KDE QML source file without getting these errors:
> ReferenceError: i18n is not defined
This simple application is very similar to `qml` and `qmlscene` tools
provided by qt-declarative package. But unlike those tools kqml is very
minimal, without any of the advanced options, custom containment
configs or things like OS X specific platform workarounds. Those things
can always be added back later if desired, but so far I personally
never heard of anyone who would use any of `qml` options beyond passing
it a single *.qml file. Except… maybe a --slow-animations which we
can't implement anyway without including private API bits.
This new tool comes with documentation (man page) and zsh completions.
https://invent.kde.org/plasma/plasma-sdk/-/merge_requests/79
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/kde-devel/attachments/20230610/643bfda0/attachment.sig>
More information about the kde-devel
mailing list