[Interest] bug with # in URL when using setUrl?

Konstantin Tokarev annulen at yandex.ru
Wed Mar 16 17:04:57 CET 2016



16.03.2016, 18:39, "Larry Martell" <larry.martell at gmail.com>:
>  On Wed, Mar 16, 2016 at 6:29 AM, Konstantin Tokarev <annulen at yandex.ru> wrote:
>>   16.03.2016, 02:15, "Larry Martell" <larry.martell at 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



More information about the Interest mailing list