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

Support lazy requests in QMacPasteboard::setMimeData

XMLWordPrintable

    • macOS
    • c69a2448ab129d88411a4778f2350dcf971dc623 (qt/qtbase/5.15)

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes