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

Support lazy requests in QMacPasteboard::setMimeData

    XMLWordPrintable

Details

    • macOS
    • c69a2448ab129d88411a4778f2350dcf971dc623 (qt/qtbase/5.15)

    Description

      On windows and linux it is possible to provide custom `QMimeData` classes to provide data when they are used.

      This is relevant if data is generated on the fly (e.g. requested via network link or similar)

       

      On MacOS this would also be possible, but since `QCocoaClipboard::setMimeData` calls `QMacPasteboard::setMimeData` with `EagerRequest` the data needs to be generated immediately

      (initiating unnecessary network traffic in our case)

       

      Since this behaviour can not be changed via default Qt API this use case does not work on mac os at all.

      Changing that single line to `LazyRequest` will fix the issue.

      Attachments

        Issue Links

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

          Activity

            People

              vhilshei Volker Hilsheimer
              akallabeth Armin Novak
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes