[Qt-interest] webkit simulating webserver php
Sylvain Pointeau
sylvain.pointeau at gmail.com
Sun Aug 2 08:41:38 CEST 2009
Hi Benjamin,
Thanks a million, it works for me now...
Cheers,
Sylvain
On Sat, Aug 1, 2009 at 1:49 AM, Benjamin Meyer <ben at meyerhome.net> wrote:
> 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090802/7592ced8/attachment.html
More information about the Qt-interest-old
mailing list