Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QWebEngineView: how to select an image (for download)
Forum Updated to NodeBB v4.3 + New Features

QWebEngineView: how to select an image (for download)

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.4k 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.
  • T Offline
    T Offline
    theDAX
    wrote on last edited by theDAX
    #1

    Dear all,

    With QWebView based on WebKit1 in Qt4 I can copy an image displayed inside QWebView to the clipboard. Now with the so called superior QWebEngineView I don't see any exposed methods I can use to do so.

    The examples provided with Qt5 to select images using jscript is not a solution I can use.
    I know I still can use WebKit1 but more and more websites have problems displaying content in it.

    What is what I should take a look at to get a copy of in image inside QWebEngineView to place it inside QClipBoard?

    p3c0P 1 Reply Last reply
    0
    • T theDAX

      Dear all,

      With QWebView based on WebKit1 in Qt4 I can copy an image displayed inside QWebView to the clipboard. Now with the so called superior QWebEngineView I don't see any exposed methods I can use to do so.

      The examples provided with Qt5 to select images using jscript is not a solution I can use.
      I know I still can use WebKit1 but more and more websites have problems displaying content in it.

      What is what I should take a look at to get a copy of in image inside QWebEngineView to place it inside QClipBoard?

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      @theDAX AFAIK Using JavaScript is the only way to do so. Many of the methods supported by Qt WebKit have not been implemented or not possible. See more info https://wiki.qt.io/Porting_from_QtWebKit_to_QtWebEngine. Scroll to Unavailable Qt WebKit APIs

      157

      1 Reply Last reply
      0
      • T Offline
        T Offline
        theDAX
        wrote on last edited by
        #3

        OK, thanks.
        Reading my question again, I could/should refrase it. Is there a way to select a single image and then download the selected one?

        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