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

Misleading documentation for QClipboard::ownsClipboard on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 4.7.1, 6.7.0
    • Documentation
    • None

    Description

      In the documentation of QClipboard it is noted that:

      "Windows and Mac OS X does not have the concept of ownership; the clipboard is a fully global resource so all applications are notified of changes." [grammar error: does -> do]

      However, on Windows the function QClipboard::ownsClipboard() can still return true. This is because internally the check "OleIsCurrentClipboard(d->iData) == S_OK" in QClipboard::ownsMode(..) is used to determine the 'ownership' of the clipboard.

      This seems to contradict the above note that Windows does not have the concept of ownership. If it doesn't contradict each other, it is at least misleading.

      Attachments

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

        Activity

          People

            docteam Qt Documentation Team
            vfrlyxorg Vincent van Ravesteijn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes