hakura
hakura

Reputation: 409

QT and web development bridge

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?

Upvotes: 8

Views: 2357

Answers (3)

Pankaj
Pankaj

Reputation: 609

You can check out GCF from VCreateLogic (GCF Web Link). It is a component framework built on top of Qt and has helper components to make your Qt application available through a web browser. They have a open source version and you can surely download and play with it to see if this is what you are looking for.

PS: I have no relationship with VCreateLogic and had seen a demo of GCF where they showcased what you are looking for.

Upvotes: 1

Jader Dias
Jader Dias

Reputation: 90475

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

Upvotes: 8

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).

Upvotes: 8

Related Questions