[Qt-interest] Qt for web applications

Pau Garcia i Quiles pgquiles at elpauer.org
Tue Nov 24 13:49:08 CET 2009


On Tue, Nov 24, 2009 at 1:39 PM, M. Bashir Al-Noimi <mbnoimi at gmx.com> wrote:
> Hi All,
>
> As you know it easy to create an application by C# has two interfaces
> (desktop and web interfaces) so I'm wondering:
>
> Can I use Qt / C++ for creating an application has web and desktop
> interfaces?
>
> P.S.
> I think Python can create two interfaces just like C#, but I'm not sure if
> it can works in case of using Qt with Python.

Not really.

You may be interested in Wt ( http://webtoolkit.eu ), which provides a
Qt-like API for webapplications.

There is an experimental connector for Wt called WtDesktop which uses
QtWebKit to provide a desktop interface ( see
http://gitorious.org/wtdesktop and http://www.elpauer.org/?p=428 ).

In Wt, your code is the same but depending on the connector library
you use, you get a different kind of application:
- if you link to wthttp you get a webapp with its own embedded HTTP/HTTPS server
- if you link to wtfcgi you get a FastCGI module you can use with any
webserver (Apache, IIS, etc)
- if you link to wtdesktop you get a desktop application

-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)



More information about the Qt-interest-old mailing list