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

Mac: QClipboard behavior different from windows

    XMLWordPrintable

Details

    • macOS

    Description

      In some situation where lazy copying is required, On mac there is no option available to set this to happen.

      On Windows copy on demand can be implemented with QClipboard by creating a custom QMimeData based class where the protected function retrieveData is called on paste.

      On OS X the default behavior for data in the Pasteboard is "EagerRequest", which calls retrieveData immediately.

      There does not seems to be a way to set this DataRequestType EagerRequest to LazyRequest without modifying src.

      Attached is the little patch which makes the default behavior lazyRequest. But this would be nice if there is way where developer can set what kind of copy he intends to do.

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            qtcomsupport Qt Support
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes