[Qt-qml] QML without GUI?

Alan Alpert alan.alpert at nokia.com
Thu Dec 1 22:38:00 CET 2011


On Thu, 1 Dec 2011 19:45:57 ext Jason H wrote:
> Is it possible to repurpose QML for non-gui, specifically text  stream
> output?
> 
> Here's what I'm thinking... Have it render HTML. Or even.better yet, take
> the Wt approach so QML can be, used for web  interfaces!
> 
> Is this possible?

Do you mean usinq QML for actually non-gui tasks? Then just don't import the 
QtQuick GUI primitives. Just use built in elements, like Component, and your 
own imports.

Or do you mean rendering to something other than pixels on the screen? Then 
you want a custom lighthouse plugin. 
http://blog.forwardbias.in/2011/07/qtcaca-lighthouse-plugin.html talks about 
one that renders to text using cacalib. You could probably do one that outputs 
colored divs instead.

-- 
Alan Alpert
Senior Engineer
Nokia, Qt Development Frameworks


More information about the Qt-qml mailing list