[webkit-qt] Can I return MyQObject from a slot.
Mital Vora
mital.d.vora at gmail.com
Sun Nov 29 03:53:49 PST 2009
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.
>
> Luciano
>
>
> --
> 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/71fbb2b3/attachment.html>
More information about the webkit-qt
mailing list