Regards, Mital Vora.
On Sun, Nov 29, 2009 at 4:27 PM, Luciano Montanaro <[email protected]>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/ [email protected] > _______________________________________________ > webkit-qt mailing list > [email protected] > http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt >
_______________________________________________ webkit-qt mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt
