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

Webassembly dialogs are blown to pieces

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.13.1, 5.14.0 Alpha
    • Fix Version/s: 5.14.0 RC1
    • Component/s: GUI: Menus
    • Labels:
      None
    • Environment:
      Firefox 70.0b13 (64-bit)
    • Platform/s:
      WebAssembly
    • Commits:
      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

        For Gerrit Dashboard: QTBUG-79160
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            lpotter Lorn Potter
            Reporter:
            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