[Qt-qml] QML without GUI?

Jason H scorp1us at yahoo.com
Mon Dec 12 19:01:23 CET 2011


Exactly. And I am studying Wt now...
I still think they could use a QML version.



________________________________
 From: Attila Csipa <qt at csipa.in.rs>
To: Bo Thorsen <bo at fioniasoftware.dk> 
Cc: qt-qml at qt.nokia.com 
Sent: Monday, December 5, 2011 5:17 AM
Subject: Re: [Qt-qml] QML without GUI?
 
On 12/02/2011 09:09 AM, Bo Thorsen wrote:
> Den 01-12-2011 23:04, Jason H skrev:
>> Thanks. I actually want to put out HTML an other structured formats
>> instead. Any clue how I could evaluate the object tree and get output?
>> Trivial Example:
>> Table {
>> Row {
>> bgcolor: "lightgray"
>> Cell { id:"c00"; text: "11" }
>> Cell {id:"c01"; text: "12" }
>> Cell { id:"c02"; text: "13" }
>> }
>> Row {
>> bgcolor: "lightblue"
>> Cell { id:"c10"; text: "21" }
>> Cell { id:"c11"; text: "22" }
>> Cell { id:"c12"; text: "23" }
>> }
>> }
>> <TABLE><TR bgcolor="lightgray"><TD>11</TD>...</TR></TABLE>
>>
>> It looks rather silly, but only until you realize you have components,
>> and can assemble your output with those.
> That's because it is rather silly. I don't see a single good reason to
> do this, and I would really not like to see this kind of capability in Qt.
>
> If you're going to do web stuff, use web tools.

Qt already has this capability :) I would agree with Alan though, the 
Right Way to do this is via a component set adapted to that particular 
domain. It's only wrong if you go for the HTML syntax renderer *only*. 
As I toyed with this idea myself, I can say that I see the real 
work/benefit coming from making the session handling transparent and if 
your component set supports the get/post/ajax interaction model. What 
you get that way is that HTML really becomes just a UI layer and you can 
keep your logic and data models on the C++ side. Of course, to make it 
usable your application itself has to be made concurrent-multiuser 
(which is not the case for most classic QML/desktop applications), but 
that's a different story (see Wt). Doing the UI in a HTML-oriented 
component set is IMHO a *lot* better than what the already mentioned Wt 
does with its WWidgets.

Best regards
Attila Csipa
_______________________________________________
Qt-qml mailing list
Qt-qml at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-qml
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20111212/66d2b6a4/attachment.html 


More information about the Qt-qml mailing list