[webkit-qt] Can I return MyQObject from a slot.
Mital Vora
mital.d.vora at gmail.com
Sun Nov 29 04:02:22 PST 2009
Regards,
Mital Vora.
On Sun, Nov 29, 2009 at 5:23 PM, Mital Vora <mital.d.vora at gmail.com> wrote:
>
> Regards,
>
> Mital Vora.
>
>
> On Sun, Nov 29, 2009 at 4:27 PM, Luciano Montanaro <mikelima at cirulla.net>wrote:
>
>> On sabato 28 novembre 2009, Mital Vora wrote:
>> > hey guys,
>> >
>> > I am a newbie to Qt. I am trying to Inject my custom Object in
>> JavaScript
>> > space using QWebFrame::addToJavaScriptWindowObject( ) method. I have few
>> > doubts related to this.
>>
>> I'm relatively a newbie too, but I've done some experiment.
>>
>> >
>> > 1) can I return custom datatype (a class derived from QObject) MyQObject
>> > from a slot.
>> >
>>
>> You can do this. I think it has to be a QObject, though.
>> And you should return it as QObject or QWidget, not as a subclass.
>>
>> can u give me some sample code then it would be of great help.
>
>>
>> What I'm still trying to find out is how to obtain a pointer to the
>> currently
>> used engine (to return an array of values, for example).
>>
> I confirmed with someone in #qtwebkit @ freenode.. its not possible to get
> the engine out of QWebFrame.
>
In Qt 4.6
>
>
>>
>> Luciano
>>
>> I am still not sure. all the other things which I mentioned is preety
much straight forward using JavaScriptCore (I have done it in windows). I
would like to take opinion of anyone from the core development team.
I would also be interested in developing those features.
>> --
>> Luciano Montanaro //
>> \X/ mikelima at cirulla.net
>> _______________________________________________
>> webkit-qt mailing list
>> webkit-qt at lists.webkit.org
>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20091129/a84fda29/attachment.html>
More information about the webkit-qt
mailing list