Well you've undoubtedly seen my Qt/QML/Witty posts. This is due to my current
effort, which is some kind of unified workflow for Qt and Witty to be able to
generate UIs from the same definition.
My first attempt was to typdef things to be neutral:
#ifdef QT
typedef QWidget Widget;
#else
typedef WContainerWidget Widget;
#endif
And for a trivial case of hand-written screen layouts and code worked, but this
was cumbersome and sank into the swamp.
My second attempt was to typedef Witty to Qt, but due to some things (like
QVariant, QString) this fell over then sank into the swamp.
My third attempt was to create a Designer plugin of these "neutral" types and
classes, so the uic would work without modification, but there is no away to
get alternate layouts supported without substantial code changes to designer.
(After all just neutral layout class names and widget names are needed in the
file.)
My forth and current attempt is to create a UIC binary that supports Wt headers
and classes. The code is still compiling (this is the 1st time I compiled Qt
from source on this machine) but I expect it to burn down, fall over, then sink
into the swamp.
While I sit here with my cores churning away I thought I'd write this and ask
if this has ever been attempted and see what everyone's thoughts were? My
original attempt was encouraging, but I don't want people to have to hand code
these dialog layouts. My main.cpp was heavily #ifdef'd but the actual
MyWidget.cpp file was quite nice. I was able to flip the compiler option and
have it, without additional changes produce both a native and web binary. Which
look quite a bit alike. I know there will be web-specific ifdefs needed (to
push function to client side) and such. But the more I can make automatic and
shared the better.
I found that by neutralizing the classes I was able to prevent additional
platform crify from being brought in and needing to be supported.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest