[Qt-interest] webkit simulating webserver php

Benjamin Meyer ben at meyerhome.net
Sat Aug 1 01:49:17 CEST 2009


Checkout the schemeaccesshandler.[h,cpp] files in Arora, We overload  
QNetworkReply to generate a html file for a directory listing.

http://github.com/Arora/arora/tree/b181a799ac1671a4c853b505f746bc1bf3299770/src

-Benjamin Meyer

On Jul 31, 2009, at 4:20 AM, Sylvain Pointeau wrote:

> Hi,
> I tried to simulate a webserver with the webkit module.
> I sub-classed the QNetworkAccessManager then the function
> create(op,req,buff)
> then I called the php-cli with a QProcess to have the generated page
>
> for now, I generate a temp file and I modify the request to return a  
> reply
> to this new created file.
> it works well but I would like to avoid this temporary file...
>
> I would like a have a dedicated QNetworkReply to handle my content  
> in a
> QByteArray...
> but seems I have to subclass it ... but I have no idea how to do  
> that ...
> (it inherits QIODevice)
>
> do you have an idea?
>
> many thanks in advance
>
> Cheers,
> Sylvain
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list