Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How can i access to WebViewLoadRequest in C++?
Forum Updated to NodeBB v4.3 + New Features

How can i access to WebViewLoadRequest in C++?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 3 Posters 667 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Advanced
    wrote on last edited by
    #1

    Dear Guys
    I want to connect Quick Controls 2 WebView WebViewLoadRequest signal in C++ Slot.
    In this signal we have one argument with type of WebViewLoadRequest . So, how can i define this type in C++ slot as input?

    void MyClass::OnUrlChanged(const ???? &)

    thanks

    R 1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      @Advanced I doubt it could be possible to access WebViewLoadRequest in C++ as there is no public API for it.
      As far as urlChanged is concerned it returns a QUrl so that should be possible as usual. QUrl will be the parameter.

      157

      1 Reply Last reply
      0
      • A Advanced

        Dear Guys
        I want to connect Quick Controls 2 WebView WebViewLoadRequest signal in C++ Slot.
        In this signal we have one argument with type of WebViewLoadRequest . So, how can i define this type in C++ slot as input?

        void MyClass::OnUrlChanged(const ???? &)

        thanks

        R Offline
        R Offline
        Roumed
        wrote on last edited by Roumed
        #3

        @Advanced, Hi

        You need QQuickWebViewLoadRequest from QtWebView/private/qquickwebviewloadrequest_p.h.
        This type is registred in qtwebview/src/imports/webview.cpp.

        If I'm not mistaken it should be at webview-private.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved