August 2, 2012

svenyonson svenyonson
Lab Rat
13 posts

Accessing QObjects from javascript using Qt5 - SOLVED

 

Can someone point me to a working example of how to access QObjects from javascript? The few examples I have found do not compile with Qt5 – I am guessing the api has changed? I understand the javascript side, but I need to understand the setup from the Qt application.

2 replies

August 2, 2012

svenyonson svenyonson
Lab Rat
13 posts

Ah, I found it. My c++ object was not being derived from QObject, and so it did not find the connect method. Working now.

August 3, 2012

guziemic guziemic
Hobby Entomologist
113 posts

Please add – solved to topic :)

 
  ‹‹ Webkit automatic      Sending key press events to the browser ››

You must log in to post a reply. Not a member yet? Register here!