As briefly stated in Level Master 2000 goes Qt, Level Master 2000 uses Qt now for it’s main GUI. In able to display the Flash content, it runs a QWebView. Now, I must admit I’m fairly new to Qt, and I wanted to do most of the UI with Qt Designer, as you can see right away how it will look like.
Unfortunately, if you create your WebView with Qt Designer, look up the instance in code and want to add an object to JavaScript with
webView->page()->mainFrame()->addToJavaScriptWindowObject(...)
it doesn’t seem to work!
After playing around a bit, I figured out, that if I create the instance of QWebView myself in code, it works…now I don’t yet know what I’ve done wrong exactly or what Qt Designer messes up, but problems like this cost a lot of time and more important: nerves. But on the other hand, it’s a big relief, as soon as you figured out how to work around