Skip to content
  • 0 Votes
    6 Posts
    463 Views
    NarutoblazeN

    @Pl45m4 @mpergand thanks for you time it worked perfectly for me

  • handle KeyEvent in C++

    Solved QML and Qt Quick
    3
    0 Votes
    3 Posts
    2k Views
    B

    thanks,

    I missed it because I usually used QQmlEngine or something alike and not a QQuickView.

  • 0 Votes
    33 Posts
    11k Views
    McLionM

    Finally coming back to this ... and found the issue :-)

    DBGWebPage *NewPage = new DBGWebPage(webGUI);

    The new Page was not a child of the correct object.
    I checked pointers as suggested.
    The connect of the JS bridge showed no issues.
    However, the first call from JS (signal javaScriptWindowObjectCleared() calling my populateJavaScriptWindowObject())
    crashed on

    QWebFrame * webGUIframe = qobject_cast<QWebFrame *>(sender()); QWebView * webGUI = (QWebView*)(webGUIframe->parent())->parent();

    obviously because it was pointing to 'nothing' instead of a QWebView.
    Thank you guys for all the hints.

  • 0 Votes
    9 Posts
    4k Views
    McLionM

    I now have an eventfilter on every of my (16) webView.
    I added some debug on the MyApp notify and in the new eventfilter.
    I can see that myApp gets every keypress (first) and the installed eventfilter on the webView's gets the keypress only if any of the webView is shown.

    I'm not sure how to proceed or how this helps in forwarding the event to a specific webView since the event is not getting to the eventfilter if a webView is not active.

    How about catching the event in MyApp notify and somehow posting it to a specific webView?

    Thanks for your help.