Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. QWebEngineView img label display QPixmap

QWebEngineView img label display QPixmap

Scheduled Pinned Locked Moved Unsolved QtWebEngine
1 Posts 1 Posters 200 Views
  • 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.
  • anningA Offline
    anningA Offline
    anning
    wrote on last edited by
    #1

    Hi, all
    c++:
    signals:
    void signalImage(QPixmap img);

    js:
    bound.signalImage.connect(function(img){
    //<img id='imgid'></img>
    var imgid = document.getElementById("imgid");
    //img is QPixmap
    imgid .src=??
    });

    QWebkit assignToHTMLImageElement no problem
    but it's not going to work QWebEngineView assignToHTMLImageElement
    error:js: Uncaught TypeError: Cannot read property 'assignToHTMLImageElement' of null
    i didn't get it right anywhere?

    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