Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QT and web development bridge

Tags:

qt

Is there a project that allows me to convert a Qt project (one MainWindow, a simple GUI) to somehting that can run on a browser? I'd think there's nothing technical that prevents this from happening.

I programmed an annotation tool in Qt but on second thought it would have been much better if it run on a browser, though I don't know zip about Javascript.

It may not work magically, but are there any helpers at least towards this goal?

like image 200
hakura Avatar asked Dec 13 '11 11:12

hakura


2 Answers

It is not exactly the same but the Wt C++ Toolkit offers you an API which I find quite similar to the Qt one. Perhaps converting your project to Wt might be quite easy!

Wt makes your application a specialized HTTP server (or perhaps a FastCgi application).

like image 124
Basile Starynkevitch Avatar answered Nov 16 '22 03:11

Basile Starynkevitch


QtWui is a module for Qt that enables you to write web applications just like you where writing a standard desktop GUI application with QtGui. It comes with a simple web server that runs the application. In the future it will also be possible to use an external web server that supports FastCGI.

General principle

The idea behind QtWui is that each connected user opens a new session on the server and this session is like a standard application process on a desktop computer. Each session has a lifetime that can be configured. If no user action occurs before the end of the session lifetime, it is destroyed.

Internal machinery

QtWui Internal machinery

like image 37
Jader Dias Avatar answered Nov 16 '22 01:11

Jader Dias