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

QClipboard::dataChanged missing mimeData

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.10.0, 5.10.1
    • GUI: Drag and Drop
    • None
    • Windows 10 pro
    • Windows

      MimeData got by QApplication::clipboard()->mimeData() in QClipboard::DataChanged callback sometimes seems to be empty or, better, seems not to be already filled!

      This malfunction happens sporadically in the attached example but, in my application (that is computationally heavier) occurs in up to 50% of cases when updating the clipboard by copying file from Windows Explorer.

      A way to reproduce in the attached example is by repeatedly copying a file by keeping ctrl+c pressed. When the described issue occurs, in the example it's printed a console debug message

      "NO FORMATS!!!!"
      

      The bug may be related to QTBUG-53979.
      Attached you can find the log output with

      QT_LOGGING_RULES=qt.qpa.mime.debug=true

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

            Unassigned Unassigned
            n.peroni Nicola Peroni
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes