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

Clipboard does not work in WASM build of Qt application

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.3.0 Alpha, 6.2
    • 5.14.0, 6.0, 6.1
    • GUI: Window management
    • None
    • WASM
    • WebAssembly
    • f0be152896471aa392bb1b2b649b66feb31480cc (qt/qtbase/dev)

    Description

      I have a simple application which utilizes QClipboard, when I build the application as an Linux application and I copy the text from a QPlainTextEdit widget, it shows up in my clipboard

       

      When I deploy the WASM build to a https server or even a localhost, the clipboard text copy does not work.

      I have hosted the wasm app here for reference : https://nyue.github.io/qt_cb_wasm/cb.html

      I have posted the source code of the minimal example here : https://github.com/nyue/QtQuestions/tree/main/Qt5/clipboard

       

      Attachments

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

        Activity

          People

            lpotter Lorn Potter
            nicholas_yue Nicholas Yue
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change