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

REG [5.2.1-5.3.0] Windows QClipboard::clear when logging category qt.qpa.mime.debug is enabled

    XMLWordPrintable

Details

    • 3627d8b171379e4f0d3b52d33fcce4767282f1d9 (qtbase/5.5, 23.7.2015,5.5.5)

    Description

      Setting environment variable
      QT_LOGGING_RULES = qt.*.debug=true

      and calling QClipboard::clear() cause crash.

      Reason is in the following debug line:

      qtbasesrcpluginsplatformswindowsqwindowsclipboard.cpp
      void QWindowsClipboard::setMimeData(QMimeData *mimeData, QClipboard::Mode mode)
      {
          qCDebug(lcQpaMime) << __FUNCTION__ <<  mode << *mimeData; 
          if (mode != QClipboard::Clipboard)
              return;
      

      Attached sample shows the issue.

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes