Porting a Qt widget application to a web application
I have a fairly mature and quite complex GUI which is currently implemented using Qt widgets. The GUI is well-separated from its underlying 'engine' code that provides the functionality which is controlled from the GUI, but nevertheless the GUI code itself is still rather complex, with numerous interactions between widgets on different parts of the screen.
In the medium term we would like to be able to run the application remotely, with the GUI on one computer and the main application running on another. There are a couple of approaches we could potentially use for this...
- Keep the existing Qt widget-based GUI unchanged, run it under Windows and use RemoteApp to relay the GUI to the remote computer; if the latter is not running Windows then open-source RemoteApp clients such as FreeRDP can be used.
- Something else...?
Qt itself does not provide such functionality.
There are projects out there trying to do it, like "QtWui":http://qtwui.sourceforge.net/ or something like "Wt":http://www.webtoolkit.eu/wt/ that is inspired by Qt. I don't know the level of maturity of these though.
Thank you; I think it's clear that the first of my options (run the application on a Windows desktop and use RemoteApp) is the way forward for the time being.
Maybe it's useful the following link for you
That looks interesting, thank you.
I'm in the same your situation right now, i'm looking for a way to wrap my widget application in to a web application.
The Qt For Google Native Client it's not updated since 2012 and i I have not found some kind of tutorial about it...
The GTK+ Broadway solution if useful only with a gtk application.
If you have some news please share it with me :)
I doubt it is ever going to be completely feasible, but...
Just daydreaming here... Qt 5 uses plugable backends. That means that you can develop your own backend to render your application to, and to deal with input and other platform dependent things. Perhaps it would be possible to develop a plugin that would work with a web server to provide an application through the web, perhaps rendering on a HTML 5 canvas. I did not look into that at any way, just daydreaming here... I'm sure there are many pitfalls and obstacles to actually doing that.
Maybe it's worth looking at "emscripten qt":http://vps2.etotheipiplusone.com:30176/redmine/projects/emscripten-qt/wiki
@ Andre, are you daydreaming of something like "this":https://github.com/jhihn/Vaudeville ?
Well, that does indeed look like roughly what I had in mind, though it seems to be in a very immature state. Still, I won't work on it myself, since I don't have much interest in web technology. Furthermore, I don't think this will ever yield satisfactory performance.