I suppose this is a much better reason to have a C++ web framework than some of the others I've seen. It would probably make it pretty easy to port a Qt desktop app to the web.
Yes, provided that you were strict on separating logic from display in your app, and that the logic part of the code accounts for enough work to justify the effort...
Otherwise, good luck trying to port your QWidget-based app to something that even remotely resembles a web app.
However, a QML-based app might not be too dificult to port. It would be pretty interesting if somebody were to write something so that Qt Quick/QML based applications could run in a browser - perhaps a canvas frontend or soemthing.
I recently ported my Qt desktop app to use QML, where possible (I still use C++ and QWidgets for some things, or to extend QML, eg drag and drop support) and I think it was a very worthwhile task. QML is really pleasant to work with and much more productive than C++/Qt or HTML+CSS+JS.
Actually, IMHO, QML is what HTML should have been - easy and clear, yet also flexible and powerful.
I kind of like the idea of using C++ for web apps. I even wrote a web app that was pure C++ in 1995/1996 before anyone really knew what web apps were. :)
But this sort of thing:
out << "<h1>" << tr("hello, world") << "</h1>";
isn't really scalable... no templates at all? There's a reason why most web apps are written in scripting languages. I think if you want a high performance service, why not write an apache module or something like G-WAN, which lets you write servlet apps in C...
There is also grantlee (http://gitorious.org/grantlee) - a port of the Django templating engine - which also uses Qt. These two might be a good combination.
The desktop has been lacking the powerful omnipresence, the web offers. I think we should try to port the web applications down to the desktop. With the processing power of the desktop, and the scalability ideas of the web, the merger would be a really interesting one. Sun's Sun Ray was a step in this direction: http://en.wikipedia.org/wiki/Sun_Ray
12 comments
[ 3.5 ms ] story [ 25.5 ms ] threadOtherwise, good luck trying to port your QWidget-based app to something that even remotely resembles a web app.
Actually, IMHO, QML is what HTML should have been - easy and clear, yet also flexible and powerful.
But this sort of thing:
out << "<h1>" << tr("hello, world") << "</h1>";
isn't really scalable... no templates at all? There's a reason why most web apps are written in scripting languages. I think if you want a high performance service, why not write an apache module or something like G-WAN, which lets you write servlet apps in C...
Clicking the link and landing inside a repository browser is confusing, disorienting and definitely not helpful.