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

Webassembly: HTML elements offset contents rendered in the canvas

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • 6.4
    • 5.13.0 Beta2
    • QPA
    • None
    • Client: Win10, Chrome (73.0.3683.103), Qt 5.13, emscripten V1.38.30.
    • WebAssembly

    Description

      The attachment demonstrates a rendering problem where a Qt application is offset in the canvas based on other HTML elements in the DOM.
      It is based on the Qt analog clock example.

      – The HTML output file has been modified such that some lines of text are added above the qtcanvas.
      – The text causes the canvas to be rendered with a vertical offset (shown as a black bar) equal to the height of the text.
      – While this example doesn't show it, the problem also exists on the left side of the canvas as well, for instance, if there are HTML elements positioned on the left of the canvas element.

      To run this example:
      1) Open a cmd prompt in the extracted directory
      2) Python -m SimpleHTTPServer 8080
      3) Open Chrome and direct it to localhost:/8080/analogclock.html

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            sjkowal Steven Kowal
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes