16.03.2016, 18:39, "Larry Martell" <larry.mart...@gmail.com>: > On Wed, Mar 16, 2016 at 6:29 AM, Konstantin Tokarev <annu...@yandex.ru> > wrote: >> 16.03.2016, 02:15, "Larry Martell" <larry.mart...@gmail.com>: >>> -How can I debug the Angular code? >> >> QtWebKit has developer tools. You need to create QWebInspector, set >> QWebPage to it, >> and enable QWebSettings::DeveloperExtrasEnabled >> >> You will get error console, JS debugger, and other goodies. > > This sounds very promising but I can't quite figure out how to use it. > > I have this JS code that's somehow downloaded (I assume by nginx). How > do I integrate QWebInspector and QWebPage into the Qt app so they can > access that code?
In the beginning you've mentioned that you have QWebView. That's enough, you can get QWebPage using page() method, you can create QWebInspector as a separate widget (see code example in docs), call its setPage() method and show it somewhere -- Regards, Konstantin _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest