Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-36476

When one tries to use assignToHTMLImageElement() function of QImage on javascript side, js throws undefined function exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Out of scope
    • Affects Version/s: 5.0.1
    • Fix Version/s: 5.1.0
    • Component/s: WebKit
    • Labels:
      None
    • Environment:
      Linux 32bit as well as 64bit

      Description

      If one passes a QImage or QPixmap on to the javascript side from C++ side using the Qt Webkit Bridge. The image object recieved on the js side doesn't behave properly. While we can easily get height and width property of the object. But trying to access any of its functions throws and undefined function exception
      toDataURL: function()

      { ... },
      assignToHTMLImageElement: function(element) { ... }

      toImageData: function()

      { ... }

      The bug is not reproducible in 5.1 or 5.2. But I guess if it was broken in 5.0.1 and went through the CI system. A test case may be required.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            allan.jensen Allan Sandfeld Jensen
            Reporter:
            pritamghanghas Pritam Ghanghas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes