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

Webassembly dialogs are blown to pieces

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.14.0 RC1
    • 5.13.1, 5.14.0 Alpha
    • GUI: Menus
    • None
    • Firefox 70.0b13 (64-bit)
    • WebAssembly
    • 26f9cb7ce5a81eac9743d0dd183f59ceb7e73569 (qt/qtbase/5.13)

    Description

      I have created a minimal WebAssembly sample in which when you click on a button, it opens a QInputDialog. This works very nicely, as long as the application is in fullscreen mode. In my case, the CANVAS element is defined as 

      <CENTER>
      <TEXTAREA>
        Blah blah blah
      </TEXTAREA>

      <DIV style="width: 81%; height: 61%">

          <CANVAS id="qtcavas" oncontextmenu="event.preventDefaul()" contenteditable="true"></CANVAS>

      </DIV>

      Some points to mention:

      • I tired to embed it into IFRAME, but was not successful
      • there is a warning of no padding or border on canvas since it could mess up mouse coors. I assume this does not apply for this issue since mouse coords are wrong, only frame of the dialog is painted twice
      • the dialog frame offset seems to be equal of the canvas offset from the browser's 0,0 point
      • the dialog itsel is movable if one drags the area above the content. In this case the 2 parts of the dialogs are moving, but they are maintaining the original offset distance from each other.

      I did search for documentation, but was unlucky. If there is a known workaround or WASM should not be embedded this way, feel free to correct.

       

      <

      Attachments

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

        Activity

          People

            lpotter Lorn Potter
            imrenagy imrenagy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes