Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved QWebEngineView img label display QPixmap

    QtWebEngine
    1
    1
    115
    Loading More Posts
    • 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.
    • anning
      anning last edited by

      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 Reply Quote 0
      • First post
        Last post